aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-04-14 15:21:33 +0200
committerHarald Welte <laforge@gnumonks.org>2016-04-16 13:33:22 +0200
commitc9ac20ea43e0107c293b5d3f5c90076963e95059 (patch)
treed8ad7ba4875a59383083f4e2e825c7afe35a299d /openbsc
parenta6e81a09861645dc9e8a6aa44a6a1d43bd70dcb7 (diff)
gbproxy_test: assert msg allocation (CID #57873)
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/tests/gbproxy/gbproxy_test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/tests/gbproxy/gbproxy_test.c b/openbsc/tests/gbproxy/gbproxy_test.c
index 0ba827f76..96a68b0e5 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);