git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03cf4be
)
ndr: Comparing an array to null is always true.
author
Andreas Schneider
<asn@samba.org>
Mon, 18 Feb 2013 16:08:21 +0000
(17:08 +0100)
committer
Alexander Bokovoy
<ab@samba.org>
Fri, 22 Feb 2013 15:36:12 +0000
(16:36 +0100)
Reviewed-by: Alexander Bokovoy <ab@samba.org>
librpc/ndr/ndr_sec_helper.c
patch
|
blob
|
history
diff --git
a/librpc/ndr/ndr_sec_helper.c
b/librpc/ndr/ndr_sec_helper.c
index 66b0013b9cb42e088caf771d79fb16fafa6150a2..ea082d148dd26eec25a7b94eca6f0eebea5bee78 100644
(file)
--- 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);
}