summaryrefslogtreecommitdiffstats
path: root/source3/smbd/ipc.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-04-01 18:22:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:50 -0500
commit872d3cea871264eed0159f49fba8621dd357ef1d (patch)
tree2ae5e39b222570b4dfd9ed5cc7c322b46f63dc70 /source3/smbd/ipc.c
parentecc0c18889cb3d844310fb91130680df22663a31 (diff)
downloadsamba-872d3cea871264eed0159f49fba8621dd357ef1d.tar.gz
samba-872d3cea871264eed0159f49fba8621dd357ef1d.tar.xz
samba-872d3cea871264eed0159f49fba8621dd357ef1d.zip
r14849: Fix >= that should be >. Too strict condition
checked by Volker. Jeremy. (This used to be commit 9a763da07385bf9af437cab8dd680f2e13fca3c3)
Diffstat (limited to 'source3/smbd/ipc.c')
-rw-r--r--source3/smbd/ipc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/ipc.c b/source3/smbd/ipc.c
index 77746cb12f5..427b6ae2144 100644
--- a/source3/smbd/ipc.c
+++ b/source3/smbd/ipc.c
@@ -509,7 +509,7 @@ int reply_trans(connection_struct *conn, char *inbuf,char *outbuf, int size, int
goto bad_param;
if (pdisp > tpscnt)
goto bad_param;
- if ((smb_base(inbuf) + poff + pcnt >= inbuf + bufsize) ||
+ if ((smb_base(inbuf) + poff + pcnt > inbuf + bufsize) ||
(smb_base(inbuf) + poff + pcnt < smb_base(inbuf)))
goto bad_param;
if (params + pdisp < params)
@@ -525,7 +525,7 @@ int reply_trans(connection_struct *conn, char *inbuf,char *outbuf, int size, int
goto bad_param;
if (ddisp > tdscnt)
goto bad_param;
- if ((smb_base(inbuf) + doff + dcnt >= inbuf + bufsize) ||
+ if ((smb_base(inbuf) + doff + dcnt > inbuf + bufsize) ||
(smb_base(inbuf) + doff + dcnt < smb_base(inbuf)))
goto bad_param;
if (data + ddisp < data)