1
0
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:
Stefan Metzmacher 2008-02-14 15:03:37 +01:00
parent f9116ae6db
commit a37ddb8ae0

View File

@ -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;