mac siphash: add missing NULL check on context creation
Bug reported by Kihong Heo.
@@ -51,6 +51,7 @@ static void *siphash_new(void *provctx)
{
struct siphash_data_st *ctx = OPENSSL_zalloc(sizeof(*ctx));
+ if (ctx != NULL)
ctx->provctx = provctx;
return ctx;
}
