diff options
author | 2005-05-30 16:37:57 +0000 | |
---|---|---|
committer | 2005-05-30 16:37:57 +0000 | |
commit | 8582d7b565e2b59664ee80b6ce851a0c975519d7 (patch) | |
tree | afe76b7da93862b703a409f32d798462615858b3 | |
parent | add find-alternate-file command and binding for ^X^V; ok cloder (diff) | |
download | wireguard-openbsd-8582d7b565e2b59664ee80b6ce851a0c975519d7.tar.xz wireguard-openbsd-8582d7b565e2b59664ee80b6ce851a0c975519d7.zip |
Don't call va_start() when we do not log. From Andrey Matveev.
-rw-r--r-- | usr.sbin/ftp-proxy/ftp-proxy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ftp-proxy/ftp-proxy.c b/usr.sbin/ftp-proxy/ftp-proxy.c index 80aa8895aa8..dfefecd925b 100644 --- a/usr.sbin/ftp-proxy/ftp-proxy.c +++ b/usr.sbin/ftp-proxy/ftp-proxy.c @@ -549,11 +549,12 @@ void logmsg(int pri, const char *message, ...) { va_list ap; - va_start(ap, message); if (pri > loglevel) return; + va_start(ap, message); + if (daemonize) /* syslog does its own vissing. */ vsyslog(pri, message, ap); |