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

Diff for /src/usr.bin/ssh/bitmap.c between version 1.7 and 1.8

version 1.7, 2017/06/01 04:51:58 version 1.8, 2017/06/01 06:59:21
Line 85 
Line 85 
                 return -1; /* invalid */                  return -1; /* invalid */
         nlen = (n / BITMAP_BITS) + 1;          nlen = (n / BITMAP_BITS) + 1;
         if (b->len < nlen) {          if (b->len < nlen) {
                 if ((tmp = recallocarray(b->d, b->len, nlen, BITMAP_BYTES)) == NULL)                  if ((tmp = recallocarray(b->d, b->len,
                       nlen, BITMAP_BYTES)) == NULL)
                         return -1;                          return -1;
                 b->d = tmp;                  b->d = tmp;
                 memset(b->d + b->len, 0, (nlen - b->len) * BITMAP_BYTES);  
                 b->len = nlen;                  b->len = nlen;
         }          }
         return 0;          return 0;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8