diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/util_sock.c | 4 | ||||
-rw-r--r-- | source3/libsmb/nmblib.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index bcc1e8e15e..f77fcc9968 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -319,12 +319,12 @@ ssize_t read_udp_v4_socket(int fd, } 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)); diff --git a/source3/libsmb/nmblib.c b/source3/libsmb/nmblib.c index 74deb91a73..61e24eb6f9 100644 --- a/source3/libsmb/nmblib.c +++ b/source3/libsmb/nmblib.c @@ -789,7 +789,7 @@ struct packet_struct *read_packet(int fd,enum packet_type packet_type) length, packet_type, si->sin_addr, - si->sin_port); + ntohs(si->sin_port)); if (!packet) return NULL; |