mac poly1305: add missing NULL check in new function.
Bug reported by Kihong Heo.
@@ -45,6 +45,7 @@ static void *poly1305_new(void *provctx)
{
struct poly1305_data_st *ctx = OPENSSL_zalloc(sizeof(*ctx));
+ if (ctx != NULL)
ctx->provctx = provctx;
return ctx;
}
