gbproxy_test: assert msg allocation (CID #57873)

This commit is contained in:
Neels Hofmeyr 2016-04-14 15:21:33 +02:00 committed by Harald Welte
parent 689be93f8a
commit c871c8535b
1 changed files with 1 additions and 0 deletions

View File

@ -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);