[PATCH 4 of 5] Style: use ngx_memcpy() instead of memcpy()
Piotr Sikora
piotr at cloudflare.com
Tue Jul 8 10:06:20 UTC 2014
# HG changeset patch
# User Piotr Sikora <piotr at cloudflare.com>
# Date 1404813794 25200
# Tue Jul 08 03:03:14 2014 -0700
# Node ID 0265cb73cd77b551541a05db6894f3e03cbe5083
# Parent 255c428fcd007d6aea07d51d5d010c2a4cefe966
Style: use ngx_memcpy() instead of memcpy().
Signed-off-by: Piotr Sikora <piotr at cloudflare.com>
diff -r 255c428fcd00 -r 0265cb73cd77 src/event/ngx_event_openssl.c
--- a/src/event/ngx_event_openssl.c Tue Jul 08 03:03:14 2014 -0700
+++ b/src/event/ngx_event_openssl.c Tue Jul 08 03:03:14 2014 -0700
@@ -2638,7 +2638,7 @@ ngx_ssl_session_ticket_key_callback(ngx_
EVP_EncryptInit_ex(ectx, EVP_aes_128_cbc(), NULL, key[0].aes_key, iv);
HMAC_Init_ex(hctx, key[0].hmac_key, 16,
ngx_ssl_session_ticket_md(), NULL);
- memcpy(name, key[0].name, 16);
+ ngx_memcpy(name, key[0].name, 16);
return 0;
More information about the nginx-devel
mailing list