summaryrefslogtreecommitdiffstats
path: root/src/rate_ctr.c
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-04-09 14:22:22 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-04-10 08:44:35 +0200
commita84db616737cda5dfc6e8590a29523dc08090f60 (patch)
tree2d2454fbc732d0a064f1d8accc84f00c34a1e328 /src/rate_ctr.c
parentd154f8bda2e379a8a0e1c3712a9af6a9d97b7b97 (diff)
gprs: Add assertion for msg != NULL to bssgp_msgb_alloc (Coverity)
Currently out-of-memory is not handled by bssgp_msgb_alloc, leading to SEGV failures if msgb_alloc_headroom returns NULL. This commit adds an OSMO_ASSERT to catch this case, which improves the situation only slightly. But bssgp_msgb_alloc is used in many places without checking the return value, so just adding a conditional early NULL return would not fix the issue either. Fixes: Coverity CID 1293377 Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/rate_ctr.c')
0 files changed, 0 insertions, 0 deletions