From: hasso Date: Mon, 27 Sep 2004 18:13:57 +0000 (+0000) Subject: This code didn't survive valgrinding. I wonder how it survived normal run. X-Git-Tag: frr-2.0-rc1~3531 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e082ac1dc672b39b219d233775e6467634177f62;p=matthieu%2Ffrr.git This code didn't survive valgrinding. I wonder how it survived normal run. --- diff --git a/isisd/ChangeLog b/isisd/ChangeLog index 726593ab90..b95bdbf99d 100644 --- a/isisd/ChangeLog +++ b/isisd/ChangeLog @@ -1,3 +1,7 @@ +2004-09-27 Hasso Tepper + + * isis_pdu.c: Fix accessing NULL found by valgrind. + 2004-09-26 Hasso Tepper * isis_circuit.c: Fix previous commit. Don't schedule LSP regeneration diff --git a/isisd/isis_pdu.c b/isisd/isis_pdu.c index 436240efad..3e5154c62e 100644 --- a/isisd/isis_pdu.c +++ b/isisd/isis_pdu.c @@ -141,6 +141,9 @@ ip_match (struct list *left, struct list *right) struct in_addr *ip2; struct listnode *node1, *node2; + if ((left == NULL) || (right == NULL)) + return 0; + LIST_LOOP (left, ip1, node1) { LIST_LOOP (right, ip2, node2)