]> granicus.if.org Git - sudo/commitdiff
move va_start() in mysyslog()
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 13 Jan 2017 23:30:08 +0000 (16:30 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 13 Jan 2017 23:30:08 +0000 (16:30 -0700)
plugins/sudoers/logging.c

index 1e68d6a1a8c555682a6f4dffcfbf2f861a0cb597..45cae67b02a90e612428d36a038979ce50f93a14 100644 (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();