diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util_sid.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c index cce360f4c1..a483f85b84 100644 --- a/source3/lib/util_sid.c +++ b/source3/lib/util_sid.c @@ -134,7 +134,10 @@ BOOL sid_split_rid(DOM_SID *sid, uint32 *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; |