summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/map-mbone/mapper.c1
-rw-r--r--usr.sbin/mrinfo/mrinfo.c1
-rw-r--r--usr.sbin/mtrace/mtrace.c3
-rw-r--r--usr.sbin/pppd/chat/chat.c5
4 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/map-mbone/mapper.c b/usr.sbin/map-mbone/mapper.c
index 30dd6c52ef8..531ffa15b69 100644
--- a/usr.sbin/map-mbone/mapper.c
+++ b/usr.sbin/map-mbone/mapper.c
@@ -203,6 +203,7 @@ log(severity, syserr, format, va_alist)
strcat(fmt, "warning - ");
strncat(fmt, format, 80);
vfprintf(stderr, fmt, ap);
+ va_end(ap);
if (syserr == 0)
fprintf(stderr, "\n");
else if (syserr < sys_nerr)
diff --git a/usr.sbin/mrinfo/mrinfo.c b/usr.sbin/mrinfo/mrinfo.c
index d5b76204a59..2bf1c403584 100644
--- a/usr.sbin/mrinfo/mrinfo.c
+++ b/usr.sbin/mrinfo/mrinfo.c
@@ -176,6 +176,7 @@ log(severity, syserr, format, va_alist)
strcat(fmt, "warning - ");
strncat(fmt, format, 80);
vfprintf(stderr, fmt, ap);
+ va_end(ap);
if (syserr == 0)
fputc('\n', stderr);
else if (syserr < sys_nerr)
diff --git a/usr.sbin/mtrace/mtrace.c b/usr.sbin/mtrace/mtrace.c
index 372b77339da..16f97a4ddba 100644
--- a/usr.sbin/mtrace/mtrace.c
+++ b/usr.sbin/mtrace/mtrace.c
@@ -52,7 +52,7 @@
#ifndef lint
static char rcsid[] =
- "@(#) $Id: mtrace.c,v 1.7 2001/07/27 20:34:36 pvalchev Exp $";
+ "@(#) $Id: mtrace.c,v 1.8 2001/09/05 22:32:45 deraadt Exp $";
#endif
#include <netdb.h>
@@ -1708,6 +1708,7 @@ log(severity, syserr, format, va_alist)
if (severity == LOG_WARNING) strcat(fmt, "warning - ");
strncat(fmt, format, 80);
vfprintf(stderr, fmt, ap);
+ va_end(ap);
if (syserr == 0)
fprintf(stderr, "\n");
else if(syserr < sys_nerr)
diff --git a/usr.sbin/pppd/chat/chat.c b/usr.sbin/pppd/chat/chat.c
index 8f8e2426153..c61cbf56974 100644
--- a/usr.sbin/pppd/chat/chat.c
+++ b/usr.sbin/pppd/chat/chat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: chat.c,v 1.12 1999/12/02 02:32:29 d Exp $ */
+/* $OpenBSD: chat.c,v 1.13 2001/09/05 22:32:46 deraadt Exp $ */
/*
* Chat -- a program for automatic session establishment (i.e. dial
@@ -83,7 +83,7 @@
#if 0
static char rcsid[] = "Id: chat.c,v 1.19 1998/03/24 23:57:48 paulus Exp $";
#else
-static char rcsid[] = "$OpenBSD: chat.c,v 1.12 1999/12/02 02:32:29 d Exp $";
+static char rcsid[] = "$OpenBSD: chat.c,v 1.13 2001/09/05 22:32:46 deraadt Exp $";
#endif
#endif
@@ -462,6 +462,7 @@ void logf __V((const char *fmt, ...))
#endif
vfmtmsg(line, sizeof(line), fmt, args);
+ va_end(args);
if (to_log)
syslog(LOG_INFO, "%s", line);
if (to_stderr)