summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-01-10 08:11:15 +0000
committerJeremy Allison <jra@samba.org>1998-01-10 08:11:15 +0000
commit5c6525003c4070f4fdbb4513601bee7abc6d8bf5 (patch)
treed3a681c15c01db4a0cf882e75714e1a05944c1c0
parent0d1933fefc3685cc2d5e48e05a323f5ef81be555 (diff)
downloadsamba-5c6525003c4070f4fdbb4513601bee7abc6d8bf5.tar.gz
samba-5c6525003c4070f4fdbb4513601bee7abc6d8bf5.tar.bz2
samba-5c6525003c4070f4fdbb4513601bee7abc6d8bf5.zip
ipc.c: Fixed problem where we were not returning 'buffer too small'
when NT sends up a mdrcnt of zero. Jeremy. (This used to be commit 2a75519b8592948b2f35ecca040bd3f88bf89be5)
-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 994e0b293b..ee2aec8c22 100644
--- a/source3/smbd/ipc.c
+++ b/source3/smbd/ipc.c
@@ -283,8 +283,8 @@ static BOOL init_package(struct pack_desc* p, int count, int subcount)
i = n = 0;
p->errcode = NERR_BufTooSmall;
}
-
- p->errcode = NERR_Success;
+ else
+ p->errcode = NERR_Success;
p->buflen = i;
n -= i;
p->stringbuf = p->base + i;