version 1.72, 2008/05/08 12:02:23 |
version 1.73, 2008/07/04 23:30:16 |
|
|
|
|
/* Get a packet from the client. */ |
/* Get a packet from the client. */ |
type = packet_read(); |
type = packet_read(); |
|
if (authctxt->failures >= options.max_authtries) |
|
goto skip; |
if ((meth = lookup_authmethod1(type)) == NULL) { |
if ((meth = lookup_authmethod1(type)) == NULL) { |
logit("Unknown message during authentication: " |
logit("Unknown message during authentication: " |
"type %d", type); |
"type %d", type); |
|
|
if (authenticated) |
if (authenticated) |
return; |
return; |
|
|
if (authctxt->failures++ > options.max_authtries) |
if (++authctxt->failures >= options.max_authtries) |
packet_disconnect(AUTH_FAIL_MSG, authctxt->user); |
packet_disconnect(AUTH_FAIL_MSG, authctxt->user); |
|
|
packet_start(SSH_SMSG_FAILURE); |
packet_start(SSH_SMSG_FAILURE); |