[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.70 and 1.71

version 1.70, 2001/04/17 10:53:26 version 1.71, 2001/04/18 22:03:45
Line 816 
Line 816 
         u_char *signature, *blob;          u_char *signature, *blob;
         char *chost, *pkalg, *p;          char *chost, *pkalg, *p;
         u_int blen, slen;          u_int blen, slen;
         int ok, i, found = 0;          int ok, i, len, found = 0;
   
         p = get_local_name(packet_get_connection_in());          p = get_local_name(packet_get_connection_in());
         if (p == NULL) {          if (p == NULL) {
                 error("userauth_hostbased: cannot get local ipaddr/name");                  error("userauth_hostbased: cannot get local ipaddr/name");
                 return 0;                  return 0;
         }          }
         chost = xstrdup(p);          len = strlen(p) + 2;
           chost = xmalloc(len);
           strlcpy(chost, p, len);
           strlcat(chost, ".", len);
         debug2("userauth_hostbased: chost %s", chost);          debug2("userauth_hostbased: chost %s", chost);
         /* check for a useful key */          /* check for a useful key */
         for (i = 0; i < authctxt->nkeys; i++) {          for (i = 0; i < authctxt->nkeys; i++) {

Legend:
Removed from v.1.70  
changed lines
  Added in v.1.71