mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
ntlmssp: when pulling messages it is important to clear memory first.
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
ded0f3c8b7
commit
30386c23ae
@ -25,6 +25,7 @@
|
|||||||
#define NTLMSSP_PULL_MESSAGE(type, blob, mem_ctx, r) \
|
#define NTLMSSP_PULL_MESSAGE(type, blob, mem_ctx, r) \
|
||||||
do { \
|
do { \
|
||||||
enum ndr_err_code __ndr_err; \
|
enum ndr_err_code __ndr_err; \
|
||||||
|
ZERO_STRUCTP(r); /* in order to deal with unset neg flags */\
|
||||||
__ndr_err = ndr_pull_struct_blob(blob, mem_ctx, r, \
|
__ndr_err = ndr_pull_struct_blob(blob, mem_ctx, r, \
|
||||||
(ndr_pull_flags_fn_t)ndr_pull_ ##type); \
|
(ndr_pull_flags_fn_t)ndr_pull_ ##type); \
|
||||||
if (!NDR_ERR_CODE_IS_SUCCESS(__ndr_err)) { \
|
if (!NDR_ERR_CODE_IS_SUCCESS(__ndr_err)) { \
|
||||||
|
Loading…
Reference in New Issue
Block a user