diff options
Diffstat (limited to 'source4/lib/util_sid.c')
-rw-r--r-- | source4/lib/util_sid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/util_sid.c b/source4/lib/util_sid.c index 505555fe7e..6f63e25c5d 100644 --- a/source4/lib/util_sid.c +++ b/source4/lib/util_sid.c @@ -206,7 +206,8 @@ BOOL sid_split_rid(struct dom_sid *sid, uint32 *rid) { if (sid->num_auths > 0) { sid->num_auths--; - *rid = sid->sub_auths[sid->num_auths]; + if (rid) + *rid = sid->sub_auths[sid->num_auths]; return True; } return False; |