/[packages]/cauldron/dhcp/current/SOURCES/dhcp-4.2.0-add_timeout_when_NULL.patch
ViewVC logotype

Contents of /cauldron/dhcp/current/SOURCES/dhcp-4.2.0-add_timeout_when_NULL.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 142666 - (show annotations) (download)
Mon Sep 12 11:38:47 2011 UTC (8 years, 9 months ago) by guillomovitch
File size: 497 byte(s)
SILENT: new file ./SOURCES/dhcp-4.2.0-add_timeout_when_NULL.patch
1 diff -up dhcp-4.2.0/common/dispatch.c.dracut dhcp-4.2.0/common/dispatch.c
2 --- dhcp-4.2.0/common/dispatch.c.dracut 2010-06-01 19:29:59.000000000 +0200
3 +++ dhcp-4.2.0/common/dispatch.c 2010-07-21 16:10:09.000000000 +0200
4 @@ -189,6 +189,10 @@ void add_timeout (when, where, what, ref
5 isc_interval_t interval;
6 isc_time_t expires;
7
8 + if (when == NULL) {
9 + return;
10 + }
11 +
12 /* See if this timeout supersedes an existing timeout. */
13 t = (struct timeout *)0;
14 for (q = timeouts; q; q = q->next) {

  ViewVC Help
Powered by ViewVC 1.1.28