diff options
Diffstat (limited to 'src/common/abis.c')
-rw-r--r-- | src/common/abis.c | 2 |
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; |