memset, memcpy, sizeof consistency fixes
[openssl.git] / crypto / engine / eng_dyn.c
index ed1c2205258d8c9a076061aefe2cb5ce7e6d33b6..06a7018351e91e8694d75aa0a35ef14b910718d9 100644 (file)
@@ -208,7 +208,7 @@ static int dynamic_set_data_ctx(ENGINE *e, dynamic_data_ctx **ctx)
         ENGINEerr(ENGINE_F_DYNAMIC_SET_DATA_CTX, ERR_R_MALLOC_FAILURE);
         return 0;
     }
-    memset(c, 0, sizeof(dynamic_data_ctx));
+    memset(c, 0, sizeof(*c));
     c->dynamic_dso = NULL;
     c->v_check = NULL;
     c->bind_engine = NULL;