philipp / rpms / dhcp

Forked from rpms/dhcp 4 years ago
Clone

Blame SOURCES/dhcp-4.2.0-add_timeout_when_NULL.patch

45d60a
diff -up dhcp-4.2.0/common/dispatch.c.dracut dhcp-4.2.0/common/dispatch.c
45d60a
--- dhcp-4.2.0/common/dispatch.c.dracut	2010-06-01 19:29:59.000000000 +0200
45d60a
+++ dhcp-4.2.0/common/dispatch.c	2010-07-21 16:10:09.000000000 +0200
45d60a
@@ -189,6 +189,10 @@ void add_timeout (when, where, what, ref
45d60a
 	isc_interval_t interval;
45d60a
 	isc_time_t expires;
45d60a
 
45d60a
+	if (when == NULL) {
45d60a
+		return;
45d60a
+	}
45d60a
+
45d60a
 	/* See if this timeout supersedes an existing timeout. */
45d60a
 	t = (struct timeout *)0;
45d60a
 	for (q = timeouts; q; q = q->next) {