[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.397 and 1.398

version 1.397, 2023/08/29 02:50:10 version 1.398, 2023/09/06 23:21:36
Line 1885 
Line 1885 
                         fatal("%s line %d: %s missing argument.",                          fatal("%s line %d: %s missing argument.",
                             filename, linenum, keyword);                              filename, linenum, keyword);
                 if (!*activep) {                  if (!*activep) {
                         arg = argv_next(&ac, &av);                          argv_consume(&ac);
                         break;                          break;
                 }                  }
                 for (i = 0; i < options->num_subsystems; i++)                  found = 0;
                         if (strcmp(arg, options->subsystem_name[i]) == 0)                  for (i = 0; i < options->num_subsystems; i++) {
                                 fatal("%s line %d: Subsystem '%s' "                          if (strcmp(arg, options->subsystem_name[i]) == 0) {
                                     "already defined.", filename, linenum, arg);                                  found = 1;
                                   break;
                           }
                   }
                   if (found) {
                           debug("%s line %d: Subsystem '%s' already defined.",
                               filename, linenum, arg);
                           argv_consume(&ac);
                           break;
                   }
                 options->subsystem_name[options->num_subsystems] = xstrdup(arg);                  options->subsystem_name[options->num_subsystems] = xstrdup(arg);
                 arg = argv_next(&ac, &av);                  arg = argv_next(&ac, &av);
                 if (!arg || *arg == '\0')                  if (!arg || *arg == '\0')

Legend:
Removed from v.1.397  
changed lines
  Added in v.1.398