summaryrefslogtreecommitdiff
path: root/source3/libsmb/nmblib.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-10-05 01:11:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:31:11 -0500
commit3dbb3d4c269ecf28f25d857aa8a4e5c1109ee5e8 (patch)
tree1724cbd06383c4a03fb100ef1dfa73afeb84d7b6 /source3/libsmb/nmblib.c
parentd75b175cf9a41e744c4f6445667e4ade72d42ac6 (diff)
downloadsamba-3dbb3d4c269ecf28f25d857aa8a4e5c1109ee5e8.tar.gz
r25510: Now we're returning the port instead of using a global,
remember to use ntohs. Hopefully will fix the build farm. Jeremy. (This used to be commit 5174acccb589edbfbe4ba633f4178f7200d7d6c4)
Diffstat (limited to 'source3/libsmb/nmblib.c')
-rw-r--r--source3/libsmb/nmblib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/nmblib.c b/source3/libsmb/nmblib.c
index 74deb91a73a..61e24eb6f9b 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;