diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-10-10 17:24:34 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-10-10 17:55:13 +0200 |
commit | 10dd73cf6afdc0ba237022510ec702a56237d7d7 (patch) | |
tree | 2b68fd53fe224eac83c91a50c0a4385bac49659c /src/Makefile.am | |
parent | dade018f2fa577de2020c4bfaa9bfde770ae3b30 (diff) |
bssgp: Free msgb in case of error when calling into gprs_ns_sendmsg
In the OsmoSGSN we have a crash with a DEAD/BLOCKED GPRS-NS and
segmented SN-UNITDATA. For the caller it is not easy to know if
the passed msg buffer has been freed or not. The most easy solution
is to always take the ownership and either pass it on or free it
in case of an error.
Adjust indirect and direct callers of gprs_ns_sendmsg. I found
the following call-chains with an external msgb parameter.
gprs_ns_sendmsg
<- _bssgp_tx_dl_ud
<- bssgp_fc_in
<- bssgp_tx_dl_ud
Update the test to allocate a real msgb because for the test with
'1000' we will msgb_free it right away.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/Makefile.am')
0 files changed, 0 insertions, 0 deletions