ssahani / rpms / dhcp

Forked from rpms/dhcp 6 years ago
Clone
9538db2
diff -up dhcp-4.1.1/common/dispatch.c.dracut dhcp-4.1.1/common/dispatch.c
9538db2
--- dhcp-4.1.1/common/dispatch.c.dracut	2009-07-25 00:04:52.000000000 +0200
9538db2
+++ dhcp-4.1.1/common/dispatch.c	2010-01-20 17:37:18.000000000 +0100
70d67fc
@@ -104,6 +104,10 @@ void add_timeout (when, where, what, ref
70d67fc
 {
70d67fc
 	struct timeout *t, *q;
70d67fc
 
70d67fc
+	if (when == NULL) {
70d67fc
+		return;
70d67fc
+	}
70d67fc
+
70d67fc
 	/* See if this timeout supersedes an existing timeout. */
70d67fc
 	t = (struct timeout *)0;
70d67fc
 	for (q = timeouts; q; q = q -> next) {