diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-09-22 18:50:08 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-10-09 18:00:55 +0200 |
commit | 7e31f847af411d5d29fd8189be6e91dc85581ffb (patch) | |
tree | a974a0a0c2d9222013de8ae1dda4cd8b27668b02 /openbsc/tests | |
parent | 657502812b09fdce0be168c260ef040c5835b10a (diff) |
gprs: Fix gprs_msgb_copy pointer computation
Currently the pointers are computed by adding an offset to the new
message's _data pointer even when the original pointer is NULL.
This leads to invalid pointers in the copied msgb.
This patch adds a NULL check to each computation such that NULL
pointers are not adjusted.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/tests')
0 files changed, 0 insertions, 0 deletions