[PATCH] libosmo-netif[master]: Fix potential NULL dereference

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Max gerrit-no-reply at lists.osmocom.org
Tue Feb 7 10:50:54 UTC 2017


Hello Jenkins Builder,

I'd like you to reexamine a change.  Please visit

    https://gerrit.osmocom.org/1639

to look at the new patch set (#2).

Fix potential NULL dereference

Change-Id: I5baf369dbf3948565614476980a32be59abaf42a
---
M src/osmux.c
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/39/1639/2

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 @@
 	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;
 

-- 
To view, visit https://gerrit.osmocom.org/1639
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I5baf369dbf3948565614476980a32be59abaf42a
Gerrit-PatchSet: 2
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Holger Freyther <holger at freyther.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list