diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/ipc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/ipc.c b/source3/smbd/ipc.c index e4ddcbec69..7cf4d6f5b8 100644 --- a/source3/smbd/ipc.c +++ b/source3/smbd/ipc.c @@ -330,8 +330,9 @@ static BOOL init_package(struct pack_desc* p, int count, int subcount) p->subcount = 0; p->curpos = p->format; if (i > n) { + p->neededlen = i; i = n = 0; - p->errcode = NERR_BufTooSmall; + p->errcode = ERROR_MORE_DATA; } else p->errcode = NERR_Success; |