We still use the thread-unsafe gethostbyaddr(): lib/socket/socket_ip.c: he = gethostbyaddr((char *)&peer_addr.sin_addr, sizeof(peer_addr.sin_addr), AF_INET); lib/socket/socket_ip.c: he = gethostbyaddr((char *)&peer_addr.sin6_addr, sizeof(peer_addr.sin6_addr), AF_INET6) Instead, we should be using getnaemeinfo() or gethostbyaddr_r().