[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.61 and 1.62

version 1.61, 2001/05/31 10:30:12 version 1.62, 2001/06/07 19:57:53
Line 208 
Line 208 
                 setproctitle("%s", pw ? user : "unknown");                  setproctitle("%s", pw ? user : "unknown");
                 authctxt->user = xstrdup(user);                  authctxt->user = xstrdup(user);
                 authctxt->service = xstrdup(service);                  authctxt->service = xstrdup(service);
                 authctxt->style = style ? xstrdup(style) : NULL; /* currently unused */                  authctxt->style = style ? xstrdup(style) : NULL;
         } else if (authctxt->valid) {          } else if (strcmp(user, authctxt->user) != 0 ||
                 if (strcmp(user, authctxt->user) != 0 ||              strcmp(service, authctxt->service) != 0) {
                     strcmp(service, authctxt->service) != 0) {                  packet_disconnect("Change of username or service not allowed: "
                         log("input_userauth_request: mismatch: (%s,%s)!=(%s,%s)",                      "(%s,%s) -> (%s,%s)",
                             user, service, authctxt->user, authctxt->service);                      authctxt->user, authctxt->service, user, service);
                         authctxt->valid = 0;  
                 }  
         }          }
         /* reset state */          /* reset state */
         dispatch_set(SSH2_MSG_USERAUTH_INFO_RESPONSE, &protocol_error);          dispatch_set(SSH2_MSG_USERAUTH_INFO_RESPONSE, &protocol_error);

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.62