Return to auth-options.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.99, 2023/03/29 00:18:35 | version 1.100, 2023/07/14 05:31:44 | ||
---|---|---|---|
|
|
||
*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) { |