summaryrefslogtreecommitdiffstats
path: root/auth1.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2008-07-09 20:54:05 +1000
committerDamien Miller <djm@mindrot.org>2008-07-09 20:54:05 +1000
commit773a7b98f9d4e0767dfdd270a339e9f31ca4edea (patch)
treea05f6443bb1691edc6140d65af6b0db73c89ccc6 /auth1.c
parentd9648eee7cacf633c79ad0f50d7e3215200d2920 (diff)
- (djm) [auth1.c] Fix format string vulnerability in protocol 1 PAM
account check failure path. The vulnerable format buffer is supplied from PAM and should not contain attacker-supplied data.
Diffstat (limited to 'auth1.c')
-rw-r--r--auth1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/auth1.c b/auth1.c
index 834ef045..b8a25587 100644
--- a/auth1.c
+++ b/auth1.c
@@ -354,7 +354,7 @@ do_authloop(Authctxt *authctxt)
msg[len] = '\0';
else
msg = "Access denied.";
- packet_disconnect(msg);
+ packet_disconnect("%s", msg);
}
#endif