remember to use ntohs. Hopefully will fix the build farm.
Jeremy.
}
if (psa->ss_family != AF_INET) {
- DEBUG(2,("read_udp_v4_socket:: invalid address family %d "
+ DEBUG(2,("read_udp_v4_socket: invalid address family %d "
"(not IPv4)\n", (int)psa->ss_family));
return 0;
}
- DEBUG(10,("read_udp_socket: ip %s port %d read: %lu\n",
+ DEBUG(10,("read_udp_v4_socket: ip %s port %d read: %lu\n",
inet_ntoa(si->sin_addr),
si->sin_port,
(unsigned long)ret));
length,
packet_type,
si->sin_addr,
- si->sin_port);
+ ntohs(si->sin_port));
if (!packet)
return NULL;