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

Diff for /src/usr.bin/ssh/sshconnect2.c between version 1.26 and 1.27

version 1.26, 2000/10/14 12:16:56 version 1.27, 2000/10/19 16:45:16
Line 979 
Line 979 
 Authmethod *  Authmethod *
 authmethod_get(char *authlist)  authmethod_get(char *authlist)
 {  {
         char *name = NULL;          char *name = NULL, *authname_old;
         Authmethod *method = NULL;          Authmethod *method = NULL;
   
         /* Use a suitable default if we're passed a nil list.  */          /* Use a suitable default if we're passed a nil list.  */
Line 1013 
Line 1013 
                 method = NULL;                  method = NULL;
         }          }
   
         if (authname_current != NULL)          authname_old = authname_current;
                 xfree(authname_current);  
   
         if (method != NULL) {          if (method != NULL) {
                 debug("next auth method to try is %s", name);                  debug("next auth method to try is %s", name);
                 authname_current = xstrdup(name);                  authname_current = xstrdup(name);
                 return method;  
         } else {          } else {
                 debug("no more auth methods to try");                  debug("no more auth methods to try");
                 authname_current = NULL;                  authname_current = NULL;
                 return NULL;  
         }          }
   
           if (authname_old != NULL)
                   xfree(authname_old);
   
           return (method);
 }  }

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27