summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-10-24 08:41:15 +0200
committerStefan Metzmacher <metze@samba.org>2011-10-24 08:41:15 +0200
commit6e2ecaf77d789262aa417b751046e2bed15bf8fa (patch)
treee2e8ad0b3b3e0d22c86cbf04e74a56f4577efa0a /source3/libsmb
parent8f356baab6c46535a1ed8a5e53859d2e69ce3166 (diff)
downloadsamba-6e2ecaf77d789262aa417b751046e2bed15bf8fa.tar.gz
samba-6e2ecaf77d789262aa417b751046e2bed15bf8fa.tar.bz2
samba-6e2ecaf77d789262aa417b751046e2bed15bf8fa.zip
s3:libsmb/read_smb: make use of smb_len_tcp()
metze
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/read_smb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/read_smb.c b/source3/libsmb/read_smb.c
index 48cdd2faa8..9c3d8f1e73 100644
--- a/source3/libsmb/read_smb.c
+++ b/source3/libsmb/read_smb.c
@@ -65,7 +65,7 @@ static ssize_t read_smb_more(uint8_t *buf, size_t buflen, void *private_data)
if (buflen > 4) {
return 0; /* We've been here, we're done */
}
- return smb_len_large(buf);
+ return smb_len_tcp(buf);
}
static void read_smb_done(struct tevent_req *subreq)