mirror of https://gerrit.osmocom.org/libosmocore
GPRS: We have to do the msgb_free() in NS not Gb Proxy
As only NS-UNITDATA messages are ever passed into the Gb Proxy, we need to do the msgb_free() at a much higher point in the calling stack, i.e. inside the NS protocol layer. This means it is now the same logic as in OpenBSC itself.
This commit is contained in:
parent
fe4ab901cc
commit
91813cf214
|
@ -793,7 +793,11 @@ static int handle_nsip_read(struct bsc_fd *bfd)
|
||||||
if (!msg)
|
if (!msg)
|
||||||
return error;
|
return error;
|
||||||
|
|
||||||
return gprs_ns_rcvmsg(nsi, msg, &saddr);
|
error = gprs_ns_rcvmsg(nsi, msg, &saddr);
|
||||||
|
|
||||||
|
msgb_free(msg);
|
||||||
|
|
||||||
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int handle_nsip_write(struct bsc_fd *bfd)
|
static int handle_nsip_write(struct bsc_fd *bfd)
|
||||||
|
|
Loading…
Reference in New Issue