Module Name: src
Committed By: christos
Date: Tue Mar 31 18:01:09 UTC 2015
Modified Files:
src/external/bsd/dhcpcd/dist: common.c
Log Message:
CID 1292550: Missing call to va_end().
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 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.10 src/external/bsd/dhcpcd/dist/common.c:1.11
--- src/external/bsd/dhcpcd/dist/common.c:1.10 Fri Mar 27 07:33:46 2015
+++ src/external/bsd/dhcpcd/dist/common.c Tue Mar 31 14:01:09 2015
@@ -1,5 +1,5 @@
#include <sys/cdefs.h>
- __RCSID("$NetBSD: common.c,v 1.10 2015/03/27 11:33:46 roy Exp $");
+ __RCSID("$NetBSD: common.c,v 1.11 2015/03/31 18:01:09 christos Exp $");
/*
* dhcpcd - DHCP client daemon
@@ -192,12 +192,12 @@ logger(struct dhcpcd_ctx *ctx, int pri,
char fmt_cpy[1024];
#endif
- serrno = errno;
- va_start(va, fmt);
-
if (pri >= LOG_DEBUG && ctx && !(ctx->options & DHCPCD_DEBUG))
return;
+ serrno = errno;
+
+ va_start(va, fmt);
#ifndef HAVE_PRINTF_M
/* Print strerrno(errno) in place of %m */
if (ctx == NULL || !(ctx->options & DHCPCD_QUIET) || ctx->log_fd != -1)