mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-03 07:45:47 +00:00
Add missing va_start/va_end around call to sudoers_error_hook().
Coverity CID 250885
This commit is contained in:
@@ -77,8 +77,11 @@ alias_warnx(const char *file, int line, int column, bool strict, bool quiet,
|
|||||||
va_list ap;
|
va_list ap;
|
||||||
debug_decl(alias_warnx, SUDOERS_DEBUG_ALIAS);
|
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);
|
ret = sudoers_error_hook(file, line, column, fmt, ap);
|
||||||
|
va_end(ap);
|
||||||
|
}
|
||||||
|
|
||||||
if (!quiet) {
|
if (!quiet) {
|
||||||
int oldlocale;
|
int oldlocale;
|
||||||
|
Reference in New Issue
Block a user