From b8117a0a4fe6d87eb7186b8c09e5ad2c13bd9ae1 Mon Sep 17 00:00:00 2001 From: jsg Date: Wed, 6 Aug 2014 04:39:50 +0000 Subject: [PATCH] add missing va_start/va_end calls ok deraadt@ guenther@ --- usr.sbin/httpd/server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.20.1