summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix/pvfs_read.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-05 14:59:08 +1100
committerAndrew Tridgell <tridge@samba.org>2010-03-05 16:12:06 +1100
commit2e1637833bb5e1d5c44b10761a8f6bbd88bde32d (patch)
tree21acf0aab58ef6ffb5d349b49a2c51a009516e52 /source4/ntvfs/posix/pvfs_read.c
parent80a37beb53519fdbb907a01f29ef150bafdd74e7 (diff)
downloadsamba-2e1637833bb5e1d5c44b10761a8f6bbd88bde32d.tar.gz
samba-2e1637833bb5e1d5c44b10761a8f6bbd88bde32d.tar.bz2
samba-2e1637833bb5e1d5c44b10761a8f6bbd88bde32d.zip
s4-pvfs: log more error conditions in NTVFS backend
This should make is easier to track down some bug reports Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/ntvfs/posix/pvfs_read.c')
-rw-r--r--source4/ntvfs/posix/pvfs_read.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/pvfs_read.c b/source4/ntvfs/posix/pvfs_read.c
index 75fba3c90d..d25036ad4b 100644
--- a/source4/ntvfs/posix/pvfs_read.c
+++ b/source4/ntvfs/posix/pvfs_read.c
@@ -60,6 +60,7 @@ NTSTATUS pvfs_read(struct ntvfs_module_context *ntvfs,
maxcnt = rd->readx.in.maxcnt;
if (maxcnt > 2*UINT16_MAX && req->ctx->protocol < PROTOCOL_SMB2) {
+ DEBUG(3,(__location__ ": Invalid SMB maxcnt 0x%x\n", maxcnt));
return NT_STATUS_INVALID_PARAMETER;
}