git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61d5009
)
lib: Make dom_sid_parse_endp init "endp" on all "ok" paths
author
Volker Lendecke
<vl@samba.org>
Thu, 1 Dec 2016 16:15:29 +0000
(16:15 +0000)
committer
Jeremy Allison
<jra@samba.org>
Tue, 6 Dec 2016 19:24:22 +0000
(20:24 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/security/dom_sid.c
patch
|
blob
|
history
diff --git
a/libcli/security/dom_sid.c
b/libcli/security/dom_sid.c
index 8b30ee67eea9e5a4854e3a56e35858a0236e8306..5454c514c945ddfa71c134aa5bbbbc765bb7390a 100644
(file)
--- a/
libcli/security/dom_sid.c
+++ b/
libcli/security/dom_sid.c
@@
-172,7
+172,7
@@
bool dom_sid_parse_endp(const char *sidstr,struct dom_sid *sidout,
sidout->num_auths = 0;
if (*q != '-') {
/* Just id_auth, no subauths */
-
return tru
e;
+
goto don
e;
}
q++;
@@
-200,6
+200,7
@@
bool dom_sid_parse_endp(const char *sidstr,struct dom_sid *sidout,
}
q += 1;
}
+done:
if (endp != NULL) {
*endp = q;
}