Blame SOURCES/0010-Handle-null-timeout.patch

df4638
From ed7610cdb2e8ebdbaee618e477879e7e008d4f29 Mon Sep 17 00:00:00 2001
df4638
From: Pavel Zhukov <pzhukov@redhat.com>
df4638
Date: Thu, 21 Feb 2019 10:29:08 +0100
df4638
Subject: [PATCH 10/26] Handle null timeout
df4638
Cc: pzhukov@redhat.com
df4638
df4638
Handle cases in add_timeout() where the function is called with a NULL
df4638
value for the 'when' parameter
df4638
df4638
ISC-Bugs: #19867 (rejected)
df4638
---
df4638
 common/dispatch.c | 4 ++++
df4638
 1 file changed, 4 insertions(+)
df4638
df4638
diff --git a/common/dispatch.c b/common/dispatch.c
df4638
index 0207ad3..d7fe200 100644
df4638
--- a/common/dispatch.c
df4638
+++ b/common/dispatch.c
df4638
@@ -209,6 +209,10 @@ void add_timeout (when, where, what, ref, unref)
df4638
 	isc_interval_t interval;
df4638
 	isc_time_t expires;
df4638
 
df4638
+	if (when == NULL) {
df4638
+		return;
df4638
+	}
df4638
+
df4638
 	/* See if this timeout supersedes an existing timeout. */
df4638
 	t = (struct timeout *)0;
df4638
 	for (q = timeouts; q; q = q->next) {
df4638
-- 
df4638
2.14.5
df4638