summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-04-27 12:06:23 +0200
committerHarald Welte <laforge@gnumonks.org>2017-04-27 12:06:23 +0200
commit023d4f962b73aef5ef12af3b5a910fd1c80a26d5 (patch)
treeab180ece065f0bd6d2e92899dac2ccb1c1ec7d89
parent36a0ca83abde4e547f69c1989d24d24c5f394fb5 (diff)
m3ua_to_xfer_ind(): don't use data_ie without checking it exists
Change-Id: I5f7551e49c1b4ea417bee3516da1b2ece5ee0699 Fixes: coverity CID#166941
-rw-r--r--src/osmo_ss7_hmrt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo_ss7_hmrt.c b/src/osmo_ss7_hmrt.c
index 393530a..e66762d 100644
--- a/src/osmo_ss7_hmrt.c
+++ b/src/osmo_ss7_hmrt.c
@@ -25,7 +25,7 @@ struct osmo_mtp_prim *m3ua_to_xfer_ind(struct xua_msg *xua)
struct m3ua_data_hdr *data_hdr;
struct msgb *upmsg = m3ua_msgb_alloc("M3UA MTP-TRANSFER.ind");
- if (data_ie->len < sizeof(*data_hdr)) {
+ if (!data_ie || data_ie->len < sizeof(*data_hdr)) {
/* FIXME: ERROR message */
msgb_free(upmsg);
return NULL;