diff mbox

[4/4] gbproxy_test: assert msg allocation (CID #57873)

Message ID 1460640093-22167-5-git-send-email-nhofmeyr@sysmocom.de
State Not Applicable
Headers show

Commit Message

Neels Hofmeyr April 14, 2016, 1:21 p.m. UTC
---
 openbsc/tests/gbproxy/gbproxy_test.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/openbsc/tests/gbproxy/gbproxy_test.c b/openbsc/tests/gbproxy/gbproxy_test.c
index 0ba827f..96a68b0 100644
--- a/openbsc/tests/gbproxy/gbproxy_test.c
+++ b/openbsc/tests/gbproxy/gbproxy_test.c
@@ -1293,6 +1293,7 @@  static int gprs_process_message(struct gprs_ns_inst *nsi, const char *text, stru
 	}
 
 	msg = gprs_ns_msgb_alloc();
+	OSMO_ASSERT(msg);
 	memmove(msg->data, data, data_len);
 	msg->l2h = msg->data;
 	msgb_put(msg, data_len);