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

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