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

Diff for /src/usr.bin/ssh/ssh.c between version 1.520 and 1.521

version 1.520, 2020/02/18 08:49:49 version 1.521, 2020/03/06 18:20:02
Line 232 
Line 232 
   
         if (port <= 0)          if (port <= 0)
                 port = default_ssh_port();                  port = default_ssh_port();
           if (cname != NULL)
                   *cname = '\0';
   
         snprintf(strport, sizeof strport, "%d", port);          snprintf(strport, sizeof strport, "%d", port);
         memset(&hints, 0, sizeof(hints));          memset(&hints, 0, sizeof(hints));
Line 461 
Line 463 
         }          }
         /* Attempt each supplied suffix */          /* Attempt each supplied suffix */
         for (i = 0; i < options.num_canonical_domains; i++) {          for (i = 0; i < options.num_canonical_domains; i++) {
                 *newname = '\0';  
                 xasprintf(&fullhost, "%s.%s.", *hostp,                  xasprintf(&fullhost, "%s.%s.", *hostp,
                     options.canonical_domains[i]);                      options.canonical_domains[i]);
                 debug3("%s: attempting \"%s\" => \"%s\"", __func__,                  debug3("%s: attempting \"%s\" => \"%s\"", __func__,

Legend:
Removed from v.1.520  
changed lines
  Added in v.1.521