From 5fd93e02f818aecfc73db66e8064858442122959 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 7 Feb 2017 11:46:41 +0100 Subject: Fix potential NULL dereference Change-Id: I5baf369dbf3948565614476980a32be59abaf42a --- src/osmux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3