[BACK]Return to auth1.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/Attic/auth1.c between version 1.72 and 1.73

version 1.72, 2008/05/08 12:02:23 version 1.73, 2008/07/04 23:30:16
Line 261 
Line 261 
   
                 /* 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);
Line 296 
Line 298 
                 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);

Legend:
Removed from v.1.72  
changed lines
  Added in v.1.73