summaryrefslogtreecommitdiffstats
path: root/libcli
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-10 16:19:17 +0100
committerVolker Lendecke <vl@samba.org>2011-03-10 18:48:34 +0100
commit16b007c2232cc8432fa9e93409e16367d72b149e (patch)
treed153e075fecbc79bf255d1f30aa3662942c965aa /libcli
parent8d0e2415309ee15fbf509d44caf3e1df5b900620 (diff)
downloadsamba-16b007c2232cc8432fa9e93409e16367d72b149e.tar.gz
samba-16b007c2232cc8432fa9e93409e16367d72b149e.tar.xz
samba-16b007c2232cc8432fa9e93409e16367d72b149e.zip
Quite some callers of sid_split_rid do not care about the rid
Diffstat (limited to 'libcli')
-rw-r--r--libcli/security/util_sid.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcli/security/util_sid.c b/libcli/security/util_sid.c
index 535e81cbdbe..cf1f7f368fd 100644
--- a/libcli/security/util_sid.c
+++ b/libcli/security/util_sid.c
@@ -167,7 +167,9 @@ bool sid_split_rid(struct dom_sid *sid, uint32_t *rid)
{
if (sid->num_auths > 0) {
sid->num_auths--;
- *rid = sid->sub_auths[sid->num_auths];
+ if (rid != NULL) {
+ *rid = sid->sub_auths[sid->num_auths];
+ }
return true;
}
return false;