aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/osmux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osmux.c b/src/osmux.c
index 0bee9cc..913d68f 100644
--- a/src/osmux.c
+++ b/src/osmux.c
@@ -394,7 +394,8 @@ void osmux_xfrm_input_deliver(struct osmux_in_handle *h)
LOGP(DLMIB, LOGL_DEBUG, "invoking delivery function\n");
#endif
batch_msg = osmux_build_batch(batch, h->batch_size, h->batch_factor);
-
+ if (!batch_msg)
+ return;
h->stats.output_osmux_msgs++;
h->stats.output_osmux_bytes += batch_msg->len;