summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-11-07 07:08:04 +0000
committerJeremy Allison <jra@samba.org>2002-11-07 07:08:04 +0000
commit9108f68df330bf2dfa9e6591ab65e98408906d1a (patch)
treec86871635994045d563092427f12026d14d6c47b
parent93042487882d8b2407541ad21d2e9bc2b59142e5 (diff)
downloadsamba-9108f68df330bf2dfa9e6591ab65e98408906d1a.tar.gz
samba-9108f68df330bf2dfa9e6591ab65e98408906d1a.tar.bz2
samba-9108f68df330bf2dfa9e6591ab65e98408906d1a.zip
Being tpot's janitor again.... checking in things only checked into HEAD.
We are meant to be keeping 3.0 up to date... Jeremy. (This used to be commit a4c8c8f3b767f0cd4c1fa977efe8bfcd3de980d0)
-rw-r--r--source3/rpc_parse/parse_misc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/rpc_parse/parse_misc.c b/source3/rpc_parse/parse_misc.c
index 3dd9c3bc2a..c20fb85582 100644
--- a/source3/rpc_parse/parse_misc.c
+++ b/source3/rpc_parse/parse_misc.c
@@ -685,9 +685,10 @@ BOOL smb_io_buffer5(char *desc, BUFFER5 *buf5, prs_struct *ps, int depth)
if(!prs_uint32("buf_len", ps, depth, &buf5->buf_len))
return False;
-
- if(!prs_buffer5(True, "buffer" , ps, depth, buf5))
- return False;
+ if(buf5->buf_len) {
+ if(!prs_buffer5(True, "buffer" , ps, depth, buf5))
+ return False;
+ }
return True;
}