diff options
Diffstat (limited to 'auth2-pam.c')
-rw-r--r-- | auth2-pam.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/auth2-pam.c b/auth2-pam.c index dd29ebd48..99aedeaeb 100644 --- a/auth2-pam.c +++ b/auth2-pam.c | |||
@@ -1,5 +1,5 @@ | |||
1 | #include "includes.h" | 1 | #include "includes.h" |
2 | RCSID("$Id: auth2-pam.c,v 1.12 2002/01/22 12:43:13 djm Exp $"); | 2 | RCSID("$Id: auth2-pam.c,v 1.13 2002/06/26 13:58:00 djm Exp $"); |
3 | 3 | ||
4 | #ifdef USE_PAM | 4 | #ifdef USE_PAM |
5 | #include <security/pam_appl.h> | 5 | #include <security/pam_appl.h> |
@@ -140,6 +140,15 @@ input_userauth_info_response_pam(int type, u_int32_t seqnr, void *ctxt) | |||
140 | nresp = packet_get_int(); /* Number of responses. */ | 140 | nresp = packet_get_int(); /* Number of responses. */ |
141 | debug("got %d responses", nresp); | 141 | debug("got %d responses", nresp); |
142 | 142 | ||
143 | |||
144 | if (nresp != context_pam2.num_expected) | ||
145 | fatal("%s: Received incorrect number of responses " | ||
146 | "(expected %u, received %u)", __func__, nresp, | ||
147 | context_pam2.num_expected); | ||
148 | |||
149 | if (nresp > 100) | ||
150 | fatal("%s: too many replies", __func__); | ||
151 | |||
143 | for (i = 0; i < nresp; i++) { | 152 | for (i = 0; i < nresp; i++) { |
144 | int j = context_pam2.prompts[i]; | 153 | int j = context_pam2.prompts[i]; |
145 | 154 | ||