--- bss_rtcp.c.orig	2016-03-02 15:25:08.307826108 -0800
+++ bss_rtcp.c	2016-03-02 15:25:47.326785217 -0800
@@ -170,6 +170,8 @@
     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;
