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

Diff for /src/usr.bin/ssh/sshconnect.c between version 1.358 and 1.359

version 1.358, 2022/08/26 08:16:27 version 1.359, 2022/10/24 22:43:36
Line 897 
Line 897 
         char *ip = NULL, *host = NULL;          char *ip = NULL, *host = NULL;
         char hostline[1000], *hostp, *fp, *ra;          char hostline[1000], *hostp, *fp, *ra;
         char msg[1024];          char msg[1024];
         const char *type, *fail_reason;          const char *type, *fail_reason = NULL;
         const struct hostkey_entry *host_found = NULL, *ip_found = NULL;          const struct hostkey_entry *host_found = NULL, *ip_found = NULL;
         int len, cancelled_forwarding = 0, confirmed;          int len, cancelled_forwarding = 0, confirmed;
         int local = sockaddr_is_local(hostaddr);          int local = sockaddr_is_local(hostaddr);
Line 979 
Line 979 
         if (!readonly && (num_user_hostfiles == 0 ||          if (!readonly && (num_user_hostfiles == 0 ||
             (host_found != NULL && host_found->note != 0)))              (host_found != NULL && host_found->note != 0)))
                 readonly = RDONLY;                  readonly = RDONLY;
   
           /* Don't ever try to write an invalid name to a known hosts file */
           if (!valid_domain(hostname, 0, &fail_reason)) {
                   debug_f("invalid hostname \"%s\"; will not record: %s",
                       hostname, fail_reason);
                   readonly = RDONLY;
           }
   
         /*          /*
          * Also perform check for the ip address, skip the check if we are           * Also perform check for the ip address, skip the check if we are

Legend:
Removed from v.1.358  
changed lines
  Added in v.1.359