diff options
author | Volker Lendecke <vl@samba.org> | 2016-12-01 16:15:29 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2016-12-06 20:24:22 +0100 |
commit | a5902383e3886e874bd270a06673d07386149dfd (patch) | |
tree | 4390920f934bbcb6b64c9a8b655f2607ceb85afc /libcli/security | |
parent | 61d5009888dd3bf614345a249c8c1e44bca1533f (diff) | |
download | samba-a5902383e3886e874bd270a06673d07386149dfd.tar.gz |
lib: Make dom_sid_parse_endp init "endp" on all "ok" paths
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'libcli/security')
-rw-r--r-- | libcli/security/dom_sid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcli/security/dom_sid.c b/libcli/security/dom_sid.c index 8b30ee67eea..5454c514c94 100644 --- 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 true; + goto done; } 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; } |