commit | 7e31f847af411d5d29fd8189be6e91dc85581ffb | [log] [tgz] |
---|---|---|
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | Mon Sep 22 18:50:08 2014 +0200 |
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Thu Oct 09 18:00:55 2014 +0200 |
tree | a974a0a0c2d9222013de8ae1dda4cd8b27668b02 | |
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