From 8bfbb81bcd5a70280f49fbe3ab67ccf035fdeade Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 18 Feb 2013 17:08:21 +0100 Subject: ndr: Comparing an array to null is always true. Reviewed-by: Alexander Bokovoy --- librpc/ndr/ndr_sec_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'librpc/ndr') diff --git a/librpc/ndr/ndr_sec_helper.c b/librpc/ndr/ndr_sec_helper.c index 66b0013b9c..ea082d148d 100644 --- a/librpc/ndr/ndr_sec_helper.c +++ b/librpc/ndr/ndr_sec_helper.c @@ -228,7 +228,7 @@ 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) { + } else if (sid->num_auths == 0) { ZERO_STRUCT(sid->sub_auths); } -- cgit