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

Diff for /src/usr.bin/ssh/readconf.c between version 1.344 and 1.345

version 1.344, 2020/12/17 23:10:27 version 1.345, 2020/12/21 09:19:53
Line 2762 
Line 2762 
 {  {
         char *orig, *sdup, *cp;          char *orig, *sdup, *cp;
         char *host = NULL, *user = NULL;          char *host = NULL, *user = NULL;
         int ret = -1, port = -1, first;          int r, ret = -1, port = -1, first;
   
         active &= o->proxy_command == NULL && o->jump_host == NULL;          active &= o->proxy_command == NULL && o->jump_host == NULL;
   
Line 2778 
Line 2778 
   
                 if (first) {                  if (first) {
                         /* First argument and configuration is active */                          /* First argument and configuration is active */
                         if (parse_ssh_uri(cp, &user, &host, &port) == -1 &&                          r = parse_ssh_uri(cp, &user, &host, &port);
                             parse_user_host_port(cp, &user, &host, &port) != 0)                          if (r == -1 || (r == 1 &&
                               parse_user_host_port(cp, &user, &host, &port) != 0))
                                 goto out;                                  goto out;
                 } else {                  } else {
                         /* Subsequent argument or inactive configuration */                          /* Subsequent argument or inactive configuration */
                         if (parse_ssh_uri(cp, NULL, NULL, NULL) == -1 &&                          if (parse_ssh_uri(cp, NULL, NULL, NULL) == -1 &&
                             parse_user_host_port(cp, NULL, NULL, NULL) != 0)                              parse_user_host_port(cp, NULL, NULL, NULL) != 0)
                                   goto out;
                           r = parse_ssh_uri(cp, NULL, NULL, NULL);
                           if (r == -1 || (r == 1 &&
                               parse_user_host_port(cp, NULL, NULL, NULL) != 0))
                                 goto out;                                  goto out;
                 }                  }
                 first = 0; /* only check syntax for subsequent hosts */                  first = 0; /* only check syntax for subsequent hosts */

Legend:
Removed from v.1.344  
changed lines
  Added in v.1.345