s4-pvfs: log more error conditions in NTVFS backend
[ira/wip.git] / source4 / ntvfs / posix / pvfs_read.c
index 75fba3c90d9bbbc1cd1c051756a7d162d1398786..d25036ad4b0721e73fa3c634654cb3f9cfddd4d1 100644 (file)
@@ -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;
        }