summaryrefslogtreecommitdiff
path: root/librpc/ndr
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-02-18 17:08:21 +0100
committerAlexander Bokovoy <ab@samba.org>2013-02-22 16:36:12 +0100
commit8bfbb81bcd5a70280f49fbe3ab67ccf035fdeade (patch)
treee44eca6c6c0f3b66a8d1c7ad5ec5c0a8760c462d /librpc/ndr
parent03cf4bedf0bb9729fcf70f321647cf780e002a48 (diff)
downloadsamba-8bfbb81bcd5a70280f49fbe3ab67ccf035fdeade.tar.gz
samba-8bfbb81bcd5a70280f49fbe3ab67ccf035fdeade.tar.bz2
samba-8bfbb81bcd5a70280f49fbe3ab67ccf035fdeade.zip
ndr: Comparing an array to null is always true.
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'librpc/ndr')
-rw-r--r--librpc/ndr/ndr_sec_helper.c2
1 files changed, 1 insertions, 1 deletions
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);
}