Module Name: src Committed By: christos Date: Thu Dec 3 21:04:06 UTC 2015
Modified Files: src/external/bsd/dhcpcd/dist: common.c Log Message: CID 1341552: Fix NULL deref. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/external/bsd/dhcpcd/dist/common.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/dhcpcd/dist/common.c diff -u src/external/bsd/dhcpcd/dist/common.c:1.15 src/external/bsd/dhcpcd/dist/common.c:1.16 --- src/external/bsd/dhcpcd/dist/common.c:1.15 Mon Nov 30 11:33:00 2015 +++ src/external/bsd/dhcpcd/dist/common.c Thu Dec 3 16:04:06 2015 @@ -1,5 +1,5 @@ #include <sys/cdefs.h> - __RCSID("$NetBSD: common.c,v 1.15 2015/11/30 16:33:00 roy Exp $"); + __RCSID("$NetBSD: common.c,v 1.16 2015/12/03 21:04:06 christos Exp $"); /* * dhcpcd - DHCP client daemon @@ -167,7 +167,7 @@ logger(struct dhcpcd_ctx *ctx, int pri, #endif if ((ctx == NULL || !(ctx->options & DHCPCD_QUIET)) && - (pri < LOG_DEBUG || (ctx->options & DHCPCD_DEBUG))) + (pri < LOG_DEBUG || (ctx && ctx->options & DHCPCD_DEBUG))) { va_list vac;