diff --git a/crypto/bio/bss_rtcp.c b/crypto/bio/bss_rtcp.c index 7dae48556..d0cd1a968 100644 --- a/crypto/bio/bss_rtcp.c +++ b/crypto/bio/bss_rtcp.c @@ -157,6 +157,8 @@ static int rtcp_new(BIO *bi) bi->num=0; bi->flags = 0; bi->ptr=OPENSSL_malloc(sizeof(struct rpc_ctx)); + if (bi->ptr == NULL) + return(0); ctx = (struct rpc_ctx *) bi->ptr; ctx->filled = 0; ctx->pos = 0;