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

Diff for /src/usr.bin/ssh/auth2.c between version 1.163 and 1.164

version 1.163, 2021/12/26 23:34:41 version 1.164, 2022/02/23 11:18:13
Line 269 
Line 269 
         if ((style = strchr(user, ':')) != NULL)          if ((style = strchr(user, ':')) != NULL)
                 *style++ = 0;                  *style++ = 0;
   
           if (authctxt->attempt >= 1024)
                   auth_maxtries_exceeded(ssh);
         if (authctxt->attempt++ == 0) {          if (authctxt->attempt++ == 0) {
                 /* setup auth context */                  /* setup auth context */
                 authctxt->pw = PRIVSEP(getpwnamallow(ssh, user));                  authctxt->pw = PRIVSEP(getpwnamallow(ssh, user));
Line 276 
Line 278 
                         authctxt->valid = 1;                          authctxt->valid = 1;
                         debug2_f("setting up authctxt for %s", user);                          debug2_f("setting up authctxt for %s", user);
                 } else {                  } else {
                           authctxt->valid = 0;
                         /* Invalid user, fake password information */                          /* Invalid user, fake password information */
                         authctxt->pw = fakepw();                          authctxt->pw = fakepw();
                 }                  }

Legend:
Removed from v.1.163  
changed lines
  Added in v.1.164