summaryrefslogtreecommitdiffstats
path: root/crypto/bio
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/bio')
-rw-r--r--crypto/bio/bss_rtcp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/bio/bss_rtcp.c b/crypto/bio/bss_rtcp.c
index 7dae485564..d0cd1a9680 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;