[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.248 and 1.249

version 1.248, 2016/01/14 16:17:40 version 1.249, 2016/01/29 02:54:45
Line 964 
Line 964 
                         if (scan_scaled(arg, &val64) == -1)                          if (scan_scaled(arg, &val64) == -1)
                                 fatal("%.200s line %d: Bad number '%s': %s",                                  fatal("%.200s line %d: Bad number '%s': %s",
                                     filename, linenum, arg, strerror(errno));                                      filename, linenum, arg, strerror(errno));
                         /* check for too-large or too-small limits */  
                         if (val64 > UINT_MAX)  
                                 fatal("%.200s line %d: RekeyLimit too large",  
                                     filename, linenum);  
                         if (val64 != 0 && val64 < 16)                          if (val64 != 0 && val64 < 16)
                                 fatal("%.200s line %d: RekeyLimit too small",                                  fatal("%.200s line %d: RekeyLimit too small",
                                     filename, linenum);                                      filename, linenum);
                 }                  }
                 if (*activep && options->rekey_limit == -1)                  if (*activep && options->rekey_limit == -1)
                         options->rekey_limit = (u_int32_t)val64;                          options->rekey_limit = val64;
                 if (s != NULL) { /* optional rekey interval present */                  if (s != NULL) { /* optional rekey interval present */
                         if (strcmp(s, "none") == 0) {                          if (strcmp(s, "none") == 0) {
                                 (void)strdelim(&s);     /* discard */                                  (void)strdelim(&s);     /* discard */
Line 2422 
Line 2418 
         printf("%s\n", iptos2str(o->ip_qos_bulk));          printf("%s\n", iptos2str(o->ip_qos_bulk));
   
         /* oRekeyLimit */          /* oRekeyLimit */
         printf("rekeylimit %lld %d\n",          printf("rekeylimit %llu %d\n",
             (long long)o->rekey_limit, o->rekey_interval);              (unsigned long long)o->rekey_limit, o->rekey_interval);
   
         /* oStreamLocalBindMask */          /* oStreamLocalBindMask */
         printf("streamlocalbindmask 0%o\n",          printf("streamlocalbindmask 0%o\n",

Legend:
Removed from v.1.248  
changed lines
  Added in v.1.249