PROV: check for memory allocation failure in digest _dupctx.
@@ -49,6 +49,7 @@ static void *name##_dupctx(void *ctx) \
{ \
CTX *in = (CTX *)ctx; \
CTX *ret = OPENSSL_malloc(sizeof(*ret)); \
+ if (ret != NULL) \
*ret = *in; \
return ret; \
} \
