diff options
author | Harald Welte (local) <laflocal@hanuman.gnumonks.org> | 2009-12-28 17:05:43 +0100 |
---|---|---|
committer | Harald Welte <laforge@netfilter.org> | 2009-12-29 11:00:27 +0100 |
commit | 5fe33189a9833597df23dec7039b304cb78ad7f5 (patch) | |
tree | 31ba425bad6ed9112174bf4bf8e6cc3242611c5f /openbsc/src/e1_input.c | |
parent | 82ff397e3118936e4a714334d82b75f765e6d842 (diff) |
rsl_sendmsg: Print message in case trx == NULL
Diffstat (limited to 'openbsc/src/e1_input.c')
-rw-r--r-- | openbsc/src/e1_input.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/openbsc/src/e1_input.c b/openbsc/src/e1_input.c index 0a0cc8d7e..c894fe40f 100644 --- a/openbsc/src/e1_input.c +++ b/openbsc/src/e1_input.c @@ -234,10 +234,16 @@ int abis_rsl_sendmsg(struct msgb *msg) msg->l2h = msg->data; - if (!msg->trx || !msg->trx->rsl_link) { - LOGP(DRSL, LOGL_ERROR, "rsl_sendmsg: msg->trx == NULL\n"); + if (!msg->trx) { + LOGP(DRSL, LOGL_ERROR, "rsl_sendmsg: msg->trx == NULL: %s\n", + hexdump(msg->data, msg->len)); talloc_free(msg); return -EINVAL; + } else if (!msg->trx->rsl_link) { + LOGP(DRSL, LOGL_ERROR, "rsl_sendmsg: msg->trx->rsl_link == NULL: %s\n", + hexdump(msg->data, msg->len)); + talloc_free(msg); + return -EIO; } sign_link = msg->trx->rsl_link; |