This commit is contained in:
Un1q32
2025-04-25 02:01:40 -04:00
parent 3f3599106d
commit 695bccbfc9

View File

@@ -108,7 +108,7 @@ static ssize_t doPing(uint32_t ip, size_t size, char *data, char *response,
#else
sizeof(struct icmp);
#endif
unsigned char *recvbuf = calloc(size + header_size, 1);
unsigned char *recvbuf = malloc(size + header_size);
if (!recvbuf) {
#ifdef CLITEST
fputs("malloc failed\n", stderr);