2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 22:05:46 +00:00

move va_start() in mysyslog()

This commit is contained in:
Todd C. Miller
2017-01-13 16:30:08 -07:00
parent 269b8602d8
commit 414b28dc45

View File

@@ -73,8 +73,8 @@ mysyslog(int pri, const char *fmt, ...)
va_list ap;
debug_decl(mysyslog, SUDOERS_DEBUG_LOGGING)
va_start(ap, fmt);
openlog("sudo", 0, def_syslog);
va_start(ap, fmt);
vsyslog(pri, fmt, ap);
va_end(ap);
closelog();