[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.164 and 1.165

version 1.164, 2007/12/31 10:41:31 version 1.165, 2008/01/19 23:09:49
Line 494 
Line 494 
                 goto parse_int;                  goto parse_int;
   
         case oRekeyLimit:          case oRekeyLimit:
                 intptr = &options->rekey_limit;  
                 arg = strdelim(&s);                  arg = strdelim(&s);
                 if (!arg || *arg == '\0')                  if (!arg || *arg == '\0')
                         fatal("%.200s line %d: Missing argument.", filename, linenum);                          fatal("%.200s line %d: Missing argument.", filename, linenum);
Line 522 
Line 521 
                 }                  }
                 val64 *= scale;                  val64 *= scale;
                 /* detect integer wrap and too-large limits */                  /* detect integer wrap and too-large limits */
                 if ((val64 / scale) != orig || val64 > INT_MAX)                  if ((val64 / scale) != orig || val64 > UINT_MAX)
                         fatal("%.200s line %d: RekeyLimit too large",                          fatal("%.200s line %d: RekeyLimit too large",
                             filename, linenum);                              filename, linenum);
                 if (val64 < 16)                  if (val64 < 16)
                         fatal("%.200s line %d: RekeyLimit too small",                          fatal("%.200s line %d: RekeyLimit too small",
                             filename, linenum);                              filename, linenum);
                 if (*activep && *intptr == -1)                  if (*activep && options->rekey_limit == -1)
                         *intptr = (int)val64;                          options->rekey_limit = (u_int32_t)val64;
                 break;                  break;
   
         case oIdentityFile:          case oIdentityFile:

Legend:
Removed from v.1.164  
changed lines
  Added in v.1.165