From 5c6525003c4070f4fdbb4513601bee7abc6d8bf5 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 10 Jan 1998 08:11:15 +0000 Subject: 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) --- source3/smbd/ipc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/smbd') 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; -- cgit