diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-08-06 04:39:51 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-08-06 04:39:51 +0000 |
commit | ed0a96e95076363b1dd358977c6e3b15f218778f (patch) | |
tree | a3df0a3943c1caffec74e70d9dc7112964f9c287 /usr.sbin | |
parent | 8f78d73d9fa0ae72a4bb86341a6fee195c59204e (diff) |
add missing va_start/va_end calls
ok deraadt@ guenther@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/httpd/server.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/httpd/server.c b/usr.sbin/httpd/server.c index 8f4b7ce61ae..e3727aed1b9 100644 --- a/usr.sbin/httpd/server.c +++ b/usr.sbin/httpd/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.30 2014/08/06 02:04:42 jsing Exp $ */ +/* $OpenBSD: server.c,v 1.31 2014/08/06 04:39:50 jsg Exp $ */ /* * Copyright (c) 2006 - 2014 Reyk Floeter <reyk@openbsd.org> @@ -924,10 +924,12 @@ server_sendlog(struct server_config *srv_conf, int cmd, const char *emsg, ...) struct iovec iov[2]; if (srv_conf->flags & SRVFLAG_SYSLOG) { + va_start(ap, emsg); if (cmd == IMSG_LOG_ACCESS) vlog(LOG_INFO, emsg, ap); else vlog(LOG_DEBUG, emsg, ap); + va_end(ap); return; } |