aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/e1_input.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/e1_input.c b/src/e1_input.c
index ce715b5..e5ddaa3 100644
--- a/src/e1_input.c
+++ b/src/e1_input.c
@@ -636,6 +636,12 @@ struct msgb *e1inp_tx_ts(struct e1inp_ts *e1i_ts,
if (!msg)
return NULL;
len = subchan_mux_out(&e1i_ts->trau.mux, msg->data, 40);
+ if (len != 40) {
+ LOGP(DLMI, LOGL_ERROR,
+ "cannot transmit, failed to mux\n");
+ msgb_free(msg);
+ return NULL;
+ }
msgb_put(msg, 40);
break;
default: