2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Add missing va_start/va_end around call to sudoers_error_hook().

Coverity CID 250885
This commit is contained in:
Todd C. Miller
2022-03-11 08:37:06 -07:00
parent c48c511e91
commit 8e7c004c7f

View File

@@ -77,8 +77,11 @@ alias_warnx(const char *file, int line, int column, bool strict, bool quiet,
va_list ap;
debug_decl(alias_warnx, SUDOERS_DEBUG_ALIAS);
if (strict && sudoers_error_hook != NULL)
if (strict && sudoers_error_hook != NULL) {
va_start(ap, fmt);
ret = sudoers_error_hook(file, line, column, fmt, ap);
va_end(ap);
}
if (!quiet) {
int oldlocale;