From: Arran Cudbard-Bell Date: Fri, 25 Jan 2019 09:03:54 +0000 (+0700) Subject: Don't need the memset X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23cc5e37139f13993a40b2f58ed2cd8cf3166fc6;p=thirdparty%2Ffreeradius-server.git Don't need the memset --- diff --git a/src/lib/tls/missing.h b/src/lib/tls/missing.h index d2dbda5e550..5bec574acda 100644 --- a/src/lib/tls/missing.h +++ b/src/lib/tls/missing.h @@ -25,10 +25,10 @@ static inline HMAC_CTX *HMAC_CTX_new(void) { HMAC_CTX *ctx; - ctx = OPENSSL_malloc(sizeof(*ctx)); + + ctx = OPENSSL_malloc(sizeof(*ctx)); /* Between HMAC_ctx_init and HMAC_init everything is zeroed */ if (!ctx) return NULL; - memset(ctx, 0, sizeof(*ctx)); HMAC_CTX_init(ctx); return ctx; }