aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/bio/bss_rtcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/bio/bss_rtcp.c')
-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 09f14f48dc03..5c98a8234d42 100644
--- a/crypto/bio/bss_rtcp.c
+++ b/crypto/bio/bss_rtcp.c
@@ -170,6 +170,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;