Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/dhcpcd/dist CID 1341552: Fix NULL deref



details:   https://anonhg.NetBSD.org/src/rev/79e71223a0e1
branches:  trunk
changeset: 812184:79e71223a0e1
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Dec 03 21:04:59 2015 +0000

description:
CID 1341552: Fix NULL deref

diffstat:

 external/bsd/dhcpcd/dist/common.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r c8351f0d0e84 -r 79e71223a0e1 external/bsd/dhcpcd/dist/common.c
--- a/external/bsd/dhcpcd/dist/common.c Thu Dec 03 21:04:06 2015 +0000
+++ b/external/bsd/dhcpcd/dist/common.c Thu Dec 03 21:04:59 2015 +0000
@@ -1,5 +1,5 @@
 #include <sys/cdefs.h>
- __RCSID("$NetBSD: common.c,v 1.16 2015/12/03 21:04:06 christos Exp $");
+ __RCSID("$NetBSD: common.c,v 1.17 2015/12/03 21:04:59 christos Exp $");
 
 /*
  * dhcpcd - DHCP client daemon
@@ -181,7 +181,7 @@
        }
 
        /* Don't send to syslog if dumping leases or testing */
-       if (ctx->options & (DHCPCD_DUMPLEASE | DHCPCD_TEST))
+       if (ctx && ctx->options & (DHCPCD_DUMPLEASE | DHCPCD_TEST))
                goto out;
 
        if (ctx && ctx->log_fd != -1) {



Home | Main Index | Thread Index | Old Index