/[pkgs]/devel/dhcp/dhcp-4.1.0-add_timeout_when_NULL.patch
ViewVC logotype

Contents of /devel/dhcp/dhcp-4.1.0-add_timeout_when_NULL.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Sat Jun 27 00:01:45 2009 UTC (4 months, 4 weeks ago) by dcantrel
Branch: MAIN
CVS Tags: F-12-split, dhcp-4_1_0-22_fc12, dhcp-4_1_0p1-5_fc12, dhcp-4_1_0p1-13_fc13, dhcp-4_1_0p1-11_fc12, dhcp-4_1_0p1-6_fc12, dhcp-4_1_0p1-7_fc12, dhcp-4_1_0p1-8_fc12, dhcp-4_1_0p1-4_fc12, dhcp-4_1_0p1-14_fc13, dhcp-4_1_0-23_fc12, dhcp-4_1_0p1-1_fc12, dhcp-4_1_0p1-3_fc12, dhcp-4_1_0p1-9_fc12, dhcp-4_1_0p1-12_fc13, dhcp-4_1_0-26_fc12, dhcp-4_1_0p1-10_fc12, dhcp-4_1_0-25_fc12, dhcp-4_1_0-24_fc12, dhcp-4_1_0-27_fc12, dhcp-4_1_0-21_fc12, dhcp-4_1_0p1-2_fc12, HEAD
File MIME type: text/x-patch
* Fri Jun 26 2009 David Cantrell <dcantrell@redhat.com> - 12:4.1.0-21
- Handle cases in add_timeout() where the function is called with a NULL
  value for the 'when' parameter (#506626)
1 diff -up dhcp-4.1.0/common/dispatch.c.dracut dhcp-4.1.0/common/dispatch.c
2 --- dhcp-4.1.0/common/dispatch.c.dracut 2008-01-23 16:43:04.000000000 -1000
3 +++ dhcp-4.1.0/common/dispatch.c 2009-06-25 16:21:03.000000000 -1000
4 @@ -104,6 +104,10 @@ void add_timeout (when, where, what, ref
5 {
6 struct timeout *t, *q;
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) {

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2