r16705: fix a bug found by valgrind...
commitf309209629ad1b63a76fc06163a3eeb07dce4c86
authorStefan Metzmacher <metze@samba.org>
Thu, 29 Jun 2006 23:11:07 +0000 (29 23:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:09:39 +0000 (10 14:09 -0500)
tree75a6801d838905e26b4ea07da33f35df6a605954
parentf97a21b970ed23973cced2c67b5bc9ecd7afee88
r16705: fix a bug found by valgrind...
as we setup the 1 padding byte for non present dynamic part,
we need to overwrite it when we're getting a real dynamic part,
so we need to remove the buf->size +=1 when we do the first
push to the dynamic part (when buf->dynamic is still but->body + buf->body_fixed)

metze
source/libcli/smb2/request.c
source/libcli/smb2/smb2.h
source/libcli/smb2/transport.c
source/smb_server/smb2/receive.c