From 2e1637833bb5e1d5c44b10761a8f6bbd88bde32d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 5 Mar 2010 14:59:08 +1100 Subject: 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 --- source4/ntvfs/posix/pvfs_read.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/ntvfs/posix/pvfs_read.c') 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; } -- cgit