logline = new_logline(message, 0);
if (should_mail(status))
- send_mail(logline); /* send mail based on status */
+ send_mail("%s", logline); /* send mail based on status */
/* Inform the user if they failed to authenticate. */
if (inform_user) {
logline = new_logline(NULL, 0);
if (should_mail(status))
- send_mail(logline); /* send mail based on status */
+ send_mail("%s", logline); /* send mail based on status */
/*
* Log via syslog and/or a file.
* Send a copy of the error via mail.
*/
if (!ISSET(flags, NO_MAIL))
- send_mail(logline);
+ send_mail("%s", logline);
/*
* Log to syslog and/or a file.