Searched refs:apbuf (Results 1 - 2 of 2) sorted by relevance

/haiku-fatelf/src/bin/network/tcpdump/libpcap/Win32/Src/
H A Dgetaddrinfo.c521 char **aplist = NULL, *apbuf = NULL; local
609 apbuf = (char *)malloc(hp->h_length * naddrs);
610 if (aplist == NULL || apbuf == NULL) {
620 memcpy(&apbuf[i * hp->h_length], hp->h_addr_list[i],
622 aplist[i] = &apbuf[i * hp->h_length];
673 if (apbuf)
674 free(apbuf);
/haiku-fatelf/src/bin/network/tcpdump/missing/
H A Dgetaddrinfo.c517 char **aplist = NULL, *apbuf = NULL; local
605 apbuf = (char *)malloc(hp->h_length * naddrs);
606 if (aplist == NULL || apbuf == NULL) {
616 memcpy(&apbuf[i * hp->h_length], hp->h_addr_list[i],
618 aplist[i] = &apbuf[i * hp->h_length];
669 if (apbuf)
670 free(apbuf);

Completed in 184 milliseconds