diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-07-16 13:45:10 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-07-16 13:45:10 +0200 |
commit | cd367b959e91eb149013d2ef633fb348deb47f79 (patch) | |
tree | dd86b6e7059a6969be80052e412b966274af14f5 | |
parent | d4ab13b6306fd497a130d90a6732a1e437b21d66 (diff) |
gprs_bssgp_util.c: orig_msg == NULL is not supported
we need it for deriving the NSEI anyway.
Detected by Smatch
-rw-r--r-- | openbsc/src/libgb/gprs_bssgp_util.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/openbsc/src/libgb/gprs_bssgp_util.c b/openbsc/src/libgb/gprs_bssgp_util.c index b5393239e..a1eb37e18 100644 --- a/openbsc/src/libgb/gprs_bssgp_util.c +++ b/openbsc/src/libgb/gprs_bssgp_util.c @@ -111,9 +111,8 @@ int bssgp_tx_status(uint8_t cause, uint16_t *bvci, struct msgb *orig_msg) uint16_t _bvci = htons(*bvci); msgb_tvlv_put(msg, BSSGP_IE_BVCI, 2, (uint8_t *) &_bvci); } - if (orig_msg) - msgb_tvlv_put(msg, BSSGP_IE_PDU_IN_ERROR, - msgb_bssgp_len(orig_msg), msgb_bssgph(orig_msg)); + msgb_tvlv_put(msg, BSSGP_IE_PDU_IN_ERROR, + msgb_bssgp_len(orig_msg), msgb_bssgph(orig_msg)); return gprs_ns_sendmsg(bssgp_nsi, msg); } |