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

Diff for /src/usr.bin/ssh/auth2-passwd.c between version 1.4 and 1.4.2.1

version 1.4, 2003/08/26 09:58:43 version 1.4.2.1, 2004/02/28 03:51:32
Line 38 
Line 38 
 static int  static int
 userauth_passwd(Authctxt *authctxt)  userauth_passwd(Authctxt *authctxt)
 {  {
         char *password;          char *password, *newpass;
         int authenticated = 0;          int authenticated = 0;
         int change;          int change;
         u_int len;          u_int len, newlen;
   
         change = packet_get_char();          change = packet_get_char();
         if (change)  
                 logit("password change not supported");  
         password = packet_get_string(&len);          password = packet_get_string(&len);
           if (change) {
                   /* discard new password from packet */
                   newpass = packet_get_string(&newlen);
                   memset(newpass, 0, newlen);
                   xfree(newpass);
           }
         packet_check_eom();          packet_check_eom();
         if (PRIVSEP(auth_password(authctxt, password)) == 1)  
           if (change)
                   logit("password change not supported");
           else if (PRIVSEP(auth_password(authctxt, password)) == 1)
                 authenticated = 1;                  authenticated = 1;
         memset(password, 0, len);          memset(password, 0, len);
         xfree(password);          xfree(password);

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.4.2.1