mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
Fixed missing enum value rename
This commit is contained in:
@@ -81,7 +81,7 @@ CustomSetter: /* custom setter */
|
||||
+ free (settings->bind_sa.v_sa);
|
||||
+ settings->bind_sa.v_sa = malloc (option->val.bind_sa.v_sa_len);
|
||||
+ if (NULL == settings->bind_sa.v_sa)
|
||||
+ return MHD_SC_DAEMON_MALLOC_FAILURE;
|
||||
+ return MHD_SC_DAEMON_MEM_ALLOC_FAILURE;
|
||||
+ memcpy (settings->bind_sa.v_sa, option->val.bind_sa.v_sa,
|
||||
+ option->val.bind_sa.v_sa_len);
|
||||
+ settings->bind_sa.v_sa_len = option->val.bind_sa.v_sa_len;
|
||||
@@ -189,7 +189,7 @@ CustomSetter: /* custom setter */
|
||||
+ free (settings->tls_cert_key.v_mem_cert); // TODO: Support multiple certificates!!
|
||||
+ settings->tls_cert_key.v_mem_cert = malloc (cert_size + key_size + pass_size);
|
||||
+ if (NULL == settings->tls_cert_key.v_mem_cert)
|
||||
+ return MHD_SC_DAEMON_MALLOC_FAILURE;
|
||||
+ return MHD_SC_DAEMON_MEM_ALLOC_FAILURE;
|
||||
+ memcpy (settings->tls_cert_key.v_mem_cert,
|
||||
+ option->val.tls_cert_key.v_mem_cert,
|
||||
+ cert_size);
|
||||
@@ -439,7 +439,7 @@ CustomSetter: /* custom setter */
|
||||
+ settings->random_entropy.v_buf =
|
||||
+ malloc (option->val.random_entropy.v_buf_size);
|
||||
+ if (NULL == settings->random_entropy.v_buf)
|
||||
+ return MHD_SC_DAEMON_MALLOC_FAILURE;
|
||||
+ return MHD_SC_DAEMON_MEM_ALLOC_FAILURE;
|
||||
+ memcpy (settings->random_entropy.v_buf,
|
||||
+ option->val.random_entropy.v_buf,
|
||||
+ option->val.random_entropy.v_buf_size);
|
||||
|
||||
Reference in New Issue
Block a user