summaryrefslogtreecommitdiffstats
path: root/isisd/isis_pdu.c
diff options
context:
space:
mode:
authorhasso <hasso>2004-09-27 18:13:57 +0000
committerhasso <hasso>2004-09-27 18:13:57 +0000
commit75d12be19c15c5ed58d26791b15349d58dbc86b0 (patch)
tree500db2e51511a86ecf95d53e914f5550e2e04172 /isisd/isis_pdu.c
parenta8f5b804dadb72676644f601f728bd0f6c807a1e (diff)
downloadquagga-75d12be19c15c5ed58d26791b15349d58dbc86b0.tar.bz2
quagga-75d12be19c15c5ed58d26791b15349d58dbc86b0.tar.xz
This code didn't survive valgrinding. I wonder how it survived normal run.
Diffstat (limited to 'isisd/isis_pdu.c')
-rw-r--r--isisd/isis_pdu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/isisd/isis_pdu.c b/isisd/isis_pdu.c
index 436240ef..3e5154c6 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)