From: jsg Date: Wed, 6 Aug 2014 04:39:50 +0000 (+0000) Subject: add missing va_start/va_end calls X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b8117a0a4fe6d87eb7186b8c09e5ad2c13bd9ae1;p=openbsd add missing va_start/va_end calls ok deraadt@ guenther@ --- 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 @@ -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; }