[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.108 and 1.109

version 1.108, 2017/03/14 00:25:03 version 1.109, 2017/03/14 00:55:37
Line 333 
Line 333 
                 default:                  default:
                         return -1;                          return -1;
                 }                  }
                 if (secs > LONG_MAX / multiplier)                  if (secs >= LONG_MAX / multiplier)
                         return -1;                          return -1;
                 secs *= multiplier;                  secs *= multiplier;
                 if  (total > LONG_MAX - secs)                  if  (total >= LONG_MAX - secs)
                         return -1;                          return -1;
                 total += secs;                  total += secs;
                 if (total < 0)                  if (total < 0)

Legend:
Removed from v.1.108  
changed lines
  Added in v.1.109