aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2013-07-05 14:38:43 +0200
committerPablo Neira Ayuso <pablo@gnumonks.org>2013-07-05 14:41:42 +0200
commitb948701f8c68be21e0205eaf9e1a86d4fe798300 (patch)
tree8a02a4696153aacda22595158fb9ecd47e920dd4
parent3a5b4364e84042acb1ca2836739d7c1716ee3aaf (diff)
input: ipaccess: fix possible NULL dereference
Unlikely to happen, but add assertion for correctness. Reported by Holger. Reference: CID 1042352
-rw-r--r--src/input/ipaccess.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c
index 5e76a095..fadfb431 100644
--- a/src/input/ipaccess.c
+++ b/src/input/ipaccess.c
@@ -864,6 +864,8 @@ static int ipaccess_bts_cb(struct ipa_client_conn *link, struct msgb *msg)
else if (link->port == IPA_TCP_PORT_RSL)
e1i_ts = &link->line->ts[1];
+ OSMO_ASSERT(e1i_ts != NULL);
+
/* look up for some existing signaling link. */
sign_link = e1inp_lookup_sign_link(e1i_ts, hh->proto, 0);
if (sign_link == NULL) {