summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünter Kukkukk <linux@kukkukk.com>2011-07-13 06:10:13 -0700
committerJeremy Allison <jra@samba.org>2011-07-13 16:35:16 +0200
commit9b3357c54e66eef62cd7bbb5d4c9acd3cacd9fcd (patch)
treeb296bc710f5f2652bd5c218865a8d12880fe9f46 /source3
parent5e0ff955ad38b9ead0b45334333bbe0572fd2bcc (diff)
downloadsamba-9b3357c54e66eef62cd7bbb5d4c9acd3cacd9fcd.tar.gz
samba-9b3357c54e66eef62cd7bbb5d4c9acd3cacd9fcd.tar.bz2
samba-9b3357c54e66eef62cd7bbb5d4c9acd3cacd9fcd.zip
Fix bug 8305 - nmbd segfaults - when using "smbtree ..."
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Jul 13 16:35:16 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/unexpected.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/unexpected.c b/source3/libsmb/unexpected.c
index cf9ed7dbc6..483d325d67 100644
--- a/source3/libsmb/unexpected.c
+++ b/source3/libsmb/unexpected.c
@@ -221,7 +221,7 @@ static void nb_packet_got_query(struct tevent_req *req)
nread = read_packet_recv(req, talloc_tos(), &buf, &err);
TALLOC_FREE(req);
- if (nread < sizeof(struct nb_packet_query)) {
+ if (nread < (ssize_t)sizeof(struct nb_packet_query)) {
DEBUG(10, ("read_packet_recv returned %d (%s)\n",
(int)nread,
(nread == -1) ? strerror(err) : "wrong length"));