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

Diff for /src/usr.bin/ssh/misc.c between version 1.159 and 1.160

version 1.159, 2021/01/15 02:32:41 version 1.160, 2021/01/15 02:58:11
Line 545 
Line 545 
                 default:                  default:
                         return -1;                          return -1;
                 }                  }
                 if (secs >= INT_MAX / multiplier)                  if (secs > INT_MAX / multiplier)
                         return -1;                          return -1;
                 secs *= multiplier;                  secs *= multiplier;
                 if  (total >= INT_MAX - secs)                  if  (total > INT_MAX - secs)
                         return -1;                          return -1;
                 total += secs;                  total += secs;
                 if (total < 0)                  if (total < 0)

Legend:
Removed from v.1.159  
changed lines
  Added in v.1.160