mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
Fixed broken length for memcopy()
Syntax highlighting would be helpful to avoid such bugs.
This commit is contained in:
@@ -180,7 +180,7 @@ CustomSetter: /* custom setter */
|
||||
+ ++cert_size; /* Space for zero-termination */
|
||||
+ ++key_size; /* Space for zero-termination */
|
||||
+ if (NULL != option->val.tls_cert_key.v_mem_pass)
|
||||
+ pass_size = strlen (option->val.tls_cert_key.v_mem_cert);
|
||||
+ pass_size = strlen (option->val.tls_cert_key.v_mem_pass);
|
||||
+ else
|
||||
+ pass_size = 0;
|
||||
+ if (0 != pass_size)
|
||||
|
||||
@@ -104,7 +104,7 @@ MHD_daemon_set_options (
|
||||
++cert_size; /* Space for zero-termination */
|
||||
++key_size; /* Space for zero-termination */
|
||||
if (NULL != option->val.tls_cert_key.v_mem_pass)
|
||||
pass_size = strlen (option->val.tls_cert_key.v_mem_cert);
|
||||
pass_size = strlen (option->val.tls_cert_key.v_mem_pass);
|
||||
else
|
||||
pass_size = 0;
|
||||
if (0 != pass_size)
|
||||
|
||||
Reference in New Issue
Block a user