Fix cut/paste error
authorRich Salz <rsalz@akamai.com>
Mon, 4 May 2015 14:34:51 +0000 (10:34 -0400)
committerRich Salz <rsalz@openssl.org>
Mon, 4 May 2015 14:54:18 +0000 (10:54 -0400)
Was memset with wrong sizeof.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit 23b0fa5ab6b6b9f0a9350e24ac5ddb8275802617)

crypto/x509/x509_vpm.c

index ad5c9e876672c2e6ea493eb879c6637993a1ed2a..1ea0c69f5743d132b26b1dc2aa9faf80056dd5c2 100644 (file)
@@ -181,7 +181,7 @@ X509_VERIFY_PARAM *X509_VERIFY_PARAM_new(void)
         OPENSSL_free(param);
         return NULL;
     }
-    memset(param, 0, sizeof *paramid);
+    memset(param, 0, sizeof *param);
     memset(paramid, 0, sizeof *paramid);
     param->id = paramid;
     x509_verify_param_zero(param);