summaryrefslogtreecommitdiff
path: root/libpam
diff options
context:
space:
mode:
Diffstat (limited to 'libpam')
-rw-r--r--libpam/pam_syslog.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpam/pam_syslog.c b/libpam/pam_syslog.c
index 573e7e67..1dbb2f91 100644
--- a/libpam/pam_syslog.c
+++ b/libpam/pam_syslog.c
@@ -83,6 +83,7 @@ pam_vsyslog (const pam_handle_t *pamh, int priority,
}
}
+ errno = save_errno;
if (vasprintf (&msgbuf2, fmt, args) < 0)
{
syslog (LOG_AUTHPRIV|LOG_ERR, "vasprintf: %m");