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

Diff for /src/usr.bin/ssh/auth2-hostbased.c between version 1.11 and 1.12

version 1.11, 2006/08/03 03:34:41 version 1.12, 2008/07/17 08:51:07
Line 150 
Line 150 
         debug2("userauth_hostbased: chost %s resolvedname %s ipaddr %s",          debug2("userauth_hostbased: chost %s resolvedname %s ipaddr %s",
             chost, resolvedname, ipaddr);              chost, resolvedname, ipaddr);
   
           if (((len = strlen(chost)) > 0) && chost[len - 1] == '.') {
                   debug2("stripping trailing dot from chost %s", chost);
                   chost[len - 1] = '\0';
           }
   
         if (options.hostbased_uses_name_from_packet_only) {          if (options.hostbased_uses_name_from_packet_only) {
                 if (auth_rhosts2(pw, cuser, chost, chost) == 0)                  if (auth_rhosts2(pw, cuser, chost, chost) == 0)
                         return 0;                          return 0;
                 lookup = chost;                  lookup = chost;
         } else {          } else {
                 if (((len = strlen(chost)) > 0) && chost[len - 1] == '.') {  
                         debug2("stripping trailing dot from chost %s", chost);  
                         chost[len - 1] = '\0';  
                 }  
                 if (strcasecmp(resolvedname, chost) != 0)                  if (strcasecmp(resolvedname, chost) != 0)
                         logit("userauth_hostbased mismatch: "                          logit("userauth_hostbased mismatch: "
                             "client sends %s, but we resolve %s to %s",                              "client sends %s, but we resolve %s to %s",

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12