aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/abis.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-06-21 16:46:05 +0200
committerHarald Welte <laforge@gnumonks.org>2012-06-21 16:46:05 +0200
commitfa8014f181aecdf5bef554af8fc1a3d56587d6b4 (patch)
tree9c738b80884c142d8bfb9e03f7efe71c99981b84 /src/common/abis.c
parent61fb64d252b8cb04dfa30c1f3bdbf2000443c178 (diff)
make sure we don't send CCCH LOAD IND before we have an Abis link
Diffstat (limited to 'src/common/abis.c')
-rw-r--r--src/common/abis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/abis.c b/src/common/abis.c
index 92051f08..18a2043d 100644
--- a/src/common/abis.c
+++ b/src/common/abis.c
@@ -54,7 +54,7 @@ extern uint8_t abis_mac[6];
/* send message to BSC */
int abis_tx(struct ipabis_link *link, struct msgb *msg)
{
- if (link->state != LINK_STATE_CONNECT) {
+ if (!link || link->state != LINK_STATE_CONNECT) {
LOGP(DABIS, LOGL_NOTICE, "Link down, dropping message.\n");
msgb_free(msg);
return -EIO;