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

Diff for /src/usr.bin/ssh/servconf.c between version 1.319 and 1.320

version 1.319, 2017/11/03 03:18:53 version 1.320, 2017/11/03 05:18:44
Line 1041 
Line 1041 
         char *key;          char *key;
         int value;          int value;
 };  };
   static const struct multistate multistate_flag[] = {
           { "yes",                        1 },
           { "no",                         0 },
           { NULL, -1 }
   };
 static const struct multistate multistate_addressfamily[] = {  static const struct multistate multistate_addressfamily[] = {
         { "inet",                       AF_INET },          { "inet",                       AF_INET },
         { "inet6",                      AF_INET6 },          { "inet6",                      AF_INET6 },
Line 1275 
Line 1280 
         case sIgnoreRhosts:          case sIgnoreRhosts:
                 intptr = &options->ignore_rhosts;                  intptr = &options->ignore_rhosts;
  parse_flag:   parse_flag:
                 arg = strdelim(&cp);                  multistate_ptr = multistate_flag;
                 if (!arg || *arg == '\0')                  goto parse_multistate;
                         fatal("%s line %d: missing yes/no argument.",  
                             filename, linenum);  
                 value = 0;      /* silence compiler */  
                 if (strcmp(arg, "yes") == 0)  
                         value = 1;  
                 else if (strcmp(arg, "no") == 0)  
                         value = 0;  
                 else  
                         fatal("%s line %d: Bad yes/no argument: %s",  
                                 filename, linenum, arg);  
                 if (*activep && *intptr == -1)  
                         *intptr = value;  
                 break;  
   
         case sIgnoreUserKnownHosts:          case sIgnoreUserKnownHosts:
                 intptr = &options->ignore_user_known_hosts;                  intptr = &options->ignore_user_known_hosts;

Legend:
Removed from v.1.319  
changed lines
  Added in v.1.320