mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-01 14:55:12 +00:00
Set def_mailerflags even if sendmail was not found at configure time.
Fixes a NULL dereference when mailerpath is set but mailerflags is not. Bug #878
This commit is contained in:
@@ -621,9 +621,9 @@ init_defaults(void)
|
|||||||
#ifdef _PATH_SUDO_SENDMAIL
|
#ifdef _PATH_SUDO_SENDMAIL
|
||||||
if ((def_mailerpath = strdup(_PATH_SUDO_SENDMAIL)) == NULL)
|
if ((def_mailerpath = strdup(_PATH_SUDO_SENDMAIL)) == NULL)
|
||||||
goto oom;
|
goto oom;
|
||||||
|
#endif
|
||||||
if ((def_mailerflags = strdup("-t")) == NULL)
|
if ((def_mailerflags = strdup("-t")) == NULL)
|
||||||
goto oom;
|
goto oom;
|
||||||
#endif
|
|
||||||
#if (LOGGING & SLOG_FILE)
|
#if (LOGGING & SLOG_FILE)
|
||||||
if ((def_logfile = strdup(_PATH_SUDO_LOGFILE)) == NULL)
|
if ((def_logfile = strdup(_PATH_SUDO_LOGFILE)) == NULL)
|
||||||
goto oom;
|
goto oom;
|
||||||
|
Reference in New Issue
Block a user