Use safer sizeof variant in malloc
[openssl.git] / apps / s_cb.c
index 13a3a25652bca60d700f582cec347a2d18c8b494..d371cc9b98a153edb3a26aabe1b93a484329825b 100644 (file)
@@ -1173,7 +1173,7 @@ void ssl_ctx_set_excert(SSL_CTX *ctx, SSL_EXCERT *exc)
 
 static int ssl_excert_prepend(SSL_EXCERT **pexc)
 {
-    SSL_EXCERT *exc = app_malloc(sizeof *exc, "prepend cert");
+    SSL_EXCERT *exc = app_malloc(sizeof(*exc), "prepend cert");
 
     exc->certfile = NULL;
     exc->keyfile = NULL;