From bd0dcebe36ea926e2ad9a32a6eb103a88325c930 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 29 Jun 2006 23:11:07 +0000 Subject: 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 (This used to be commit f309209629ad1b63a76fc06163a3eeb07dce4c86) --- source4/libcli/smb2/smb2.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/libcli/smb2/smb2.h') diff --git a/source4/libcli/smb2/smb2.h b/source4/libcli/smb2/smb2.h index 33df4daabe..14e6e8d835 100644 --- a/source4/libcli/smb2/smb2.h +++ b/source4/libcli/smb2/smb2.h @@ -87,6 +87,7 @@ struct smb2_request_buffer { /* the packet body */ uint8_t *body; + size_t body_fixed; size_t body_size; /* this point to the next dynamic byte that can be used -- cgit