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

Diff for /src/usr.bin/ssh/auth-options.c between version 1.99 and 1.100

version 1.99, 2023/03/29 00:18:35 version 1.100, 2023/07/14 05:31:44
Line 45 
Line 45 
   
         *dstp = NULL;          *dstp = NULL;
         *ndstp = 0;          *ndstp = 0;
   
         if (nsrc == 0)          if (nsrc == 0)
                 return 0;                  return 0;
           if (nsrc >= SIZE_MAX / sizeof(*src) ||
         if ((dst = calloc(nsrc, sizeof(*src))) == NULL)              (dst = calloc(nsrc, sizeof(*src))) == NULL)
                 return -1;                  return -1;
         for (i = 0; i < nsrc; i++) {          for (i = 0; i < nsrc; i++) {
                 if ((dst[i] = strdup(src[i])) == NULL) {                  if ((dst[i] = strdup(src[i])) == NULL) {

Legend:
Removed from v.1.99  
changed lines
  Added in v.1.100