diff options
author | Stefan Sperling <ssperling@sysmocom.de> | 2018-11-12 13:03:04 +0100 |
---|---|---|
committer | Stefan Sperling <ssperling@sysmocom.de> | 2018-11-12 13:03:04 +0100 |
commit | 60509688527efdf2a90b2d4241034a9775898940 (patch) | |
tree | d35a943603f2fa4abf6ee0ae4ccb91c03983db6b /include/osmocom/sgsn/gprs_sndcp_xid.h | |
parent | 6eeed7c4dc6a72658009a3a88e0211d08dc2dc66 (diff) |
fix bogus error check in gprs_sndcp_comp_create()
The function gprs_sndcp_get_compression_class() returns -EINVAL
upon error, not -1, so an existing assertion would never trigger.
Instead, check for the values we want first (PROTOCOL_COMP or
DATA_COMP) and assert(false) in case the returned value doesn't
match either of these.
Found by: Neels
Change-Id: I8444c1ed052707c76a979fb06cb018ac678defa7
Diffstat (limited to 'include/osmocom/sgsn/gprs_sndcp_xid.h')
0 files changed, 0 insertions, 0 deletions