mirror of
https://github.com/samba-team/samba.git
synced 2024-12-29 11:21:54 +03:00
ndr_sec_helper: create a completely zero sid, so that ndr_size_dom_sid28 can return 0
metze
(This used to be commit ae6976eb4a
)
This commit is contained in:
parent
f9116ae6db
commit
a37ddb8ae0
@ -187,6 +187,9 @@ enum ndr_err_code ndr_pull_dom_sid28(struct ndr_pull *ndr, int ndr_flags, struct
|
||||
if (!NDR_ERR_CODE_IS_SUCCESS(status)) {
|
||||
/* handle a w2k bug which send random data in the buffer */
|
||||
ZERO_STRUCTP(sid);
|
||||
} else if (sid->num_auths == 0 && sid->sub_auths) {
|
||||
talloc_free(sid->sub_auths);
|
||||
sid->sub_auths = NULL;
|
||||
}
|
||||
|
||||
return NDR_ERR_SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user