[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.86 and 1.87

version 1.86, 2001/06/26 17:41:49 version 1.87, 2001/07/08 15:23:38
Line 384 
Line 384 
         int linenum, *intptr, value;          int linenum, *intptr, value;
         int bad_options = 0;          int bad_options = 0;
         ServerOpCodes opcode;          ServerOpCodes opcode;
         int i;          int i, n;
   
         f = fopen(filename, "r");          f = fopen(filename, "r");
         if (!f) {          if (!f) {
Line 796 
Line 796 
                         if (!arg || *arg == '\0')                          if (!arg || *arg == '\0')
                                 fatal("%s line %d: Missing MaxStartups spec.",                                  fatal("%s line %d: Missing MaxStartups spec.",
                                       filename, linenum);                                        filename, linenum);
                         if (sscanf(arg, "%d:%d:%d",                          if ((n = sscanf(arg, "%d:%d:%d",
                             &options->max_startups_begin,                              &options->max_startups_begin,
                             &options->max_startups_rate,                              &options->max_startups_rate,
                             &options->max_startups) == 3) {                              &options->max_startups)) == 3) {
                                 if (options->max_startups_begin >                                  if (options->max_startups_begin >
                                     options->max_startups ||                                      options->max_startups ||
                                     options->max_startups_rate > 100 ||                                      options->max_startups_rate > 100 ||
                                     options->max_startups_rate < 1)                                      options->max_startups_rate < 1)
                                           fatal("%s line %d: Illegal MaxStartups spec.",
                                               filename, linenum);
                           } else if (n != 1)
                                 fatal("%s line %d: Illegal MaxStartups spec.",                                  fatal("%s line %d: Illegal MaxStartups spec.",
                                       filename, linenum);                                      filename, linenum);
                                 break;                          else
                         }                                  options->max_startups = options->max_startups_begin;
                         intptr = &options->max_startups;                          break;
                         goto parse_int;  
   
                 case sBanner:                  case sBanner:
                         charptr = &options->banner;                          charptr = &options->banner;

Legend:
Removed from v.1.86  
changed lines
  Added in v.1.87