diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-04-07 17:52:43 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-04-07 20:09:48 +0200 |
commit | c641591ae9298894178dae78c37e5f96687be576 (patch) | |
tree | ada9d4c1d1f82aeb0dc158094a3b6e63f329fa43 /include/osmocom/vty/vty.h | |
parent | a11994ddff1edbdb85ee9dc1ffd36f9b9834edf3 (diff) |
bssgp: Always expect dup != NULL in bssgp_tx_dl_ud (Coverity)
Currently the implementation of bssgp_tx_dl_ud conditionally adds
some optional IE if dup != NULL. Later on is dereferences dup to
access qos_profile and fc, but this without checking dup in advance.
This may lead to an segmentation violation fault.
This commit changes the value range of the function to only accept
dup != NULL. An assertion will fail otherwise. All other explicit
checks for non-NULL are removed.
Fixes: Coverity CID 1040673
Sponsored-by: On-Waves ehf
Diffstat (limited to 'include/osmocom/vty/vty.h')
0 files changed, 0 insertions, 0 deletions