diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-04-14 15:21:33 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-04-16 13:33:22 +0200 |
commit | c9ac20ea43e0107c293b5d3f5c90076963e95059 (patch) | |
tree | d8ad7ba4875a59383083f4e2e825c7afe35a299d /openbsc/tests/gbproxy/gbproxy_test.c | |
parent | a6e81a09861645dc9e8a6aa44a6a1d43bd70dcb7 (diff) |
gbproxy_test: assert msg allocation (CID #57873)
Diffstat (limited to 'openbsc/tests/gbproxy/gbproxy_test.c')
-rw-r--r-- | openbsc/tests/gbproxy/gbproxy_test.c | 1 |
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); |