]> git.ipfire.org Git - ipfire-3.x.git/blob - dhcp/patches/0010-Handle-null-timeout.patch
dhcp: Update to 4.4.1
[ipfire-3.x.git] / dhcp / patches / 0010-Handle-null-timeout.patch
1 From e269e137c3b7d25a2d089be508e6769731618d54 Mon Sep 17 00:00:00 2001
2 From: Pavel Zhukov <pzhukov@redhat.com>
3 Date: Thu, 21 Feb 2019 10:29:08 +0100
4 Subject: [PATCH 10/21] Handle null timeout
5 Cc: pzhukov@redhat.com
6
7 Handle cases in add_timeout() where the function is called with a NULL
8 value for the 'when' parameter
9
10 ISC-Bugs: #19867 (rejected)
11 ---
12 common/dispatch.c | 4 ++++
13 1 file changed, 4 insertions(+)
14
15 diff --git a/common/dispatch.c b/common/dispatch.c
16 index 0207ad3..d7fe200 100644
17 --- a/common/dispatch.c
18 +++ b/common/dispatch.c
19 @@ -209,6 +209,10 @@ void add_timeout (when, where, what, ref, unref)
20 isc_interval_t interval;
21 isc_time_t expires;
22
23 + if (when == NULL) {
24 + return;
25 + }
26 +
27 /* See if this timeout supersedes an existing timeout. */
28 t = (struct timeout *)0;
29 for (q = timeouts; q; q = q->next) {
30 --
31 2.14.5