artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b60d353
)
add missing va_start/va_end calls
author
jsg
<jsg@openbsd.org>
Wed, 6 Aug 2014 04:39:50 +0000
(
04:39
+0000)
committer
jsg
<jsg@openbsd.org>
Wed, 6 Aug 2014 04:39:50 +0000
(
04:39
+0000)
ok deraadt@ guenther@
usr.sbin/httpd/server.c
patch
|
blob
|
history
diff --git
a/usr.sbin/httpd/server.c
b/usr.sbin/httpd/server.c
index
8f4b7ce
..
e3727ae
100644
(file)
--- a/
usr.sbin/httpd/server.c
+++ b/
usr.sbin/httpd/server.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: server.c,v 1.3
0 2014/08/06 02:04:42 jsing Exp $
*/
+/* $OpenBSD: server.c,v 1.3
1 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;
}