summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-05-14 01:15:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:53:44 -0500
commit0f14ae46f34ac767f18d7de086f9994f4502bc48 (patch)
treef5407442027a00194959d6b826a018d1bd1f5284 /source4/lib
parent71e22ef6b8c427a02df7ee5c9b36ccf61dc9a050 (diff)
downloadsamba-0f14ae46f34ac767f18d7de086f9994f4502bc48.tar.gz
samba-0f14ae46f34ac767f18d7de086f9994f4502bc48.tar.bz2
samba-0f14ae46f34ac767f18d7de086f9994f4502bc48.zip
r715: Finish the ldb conversion for the auth_sam module.
Andrew Bartlett (This used to be commit 099151cdabd40e724b36482c0ffc169d231146d2)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/util_sid.c3
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;