s3: Fix idmap_hash
authorVolker Lendecke <vl@samba.org>
Tue, 18 Sep 2012 22:31:26 +0000 (15:31 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 21 Sep 2012 07:26:16 +0000 (09:26 +0200)
Calling be_init with NULL safely crashes, because we dereference NULL. We
don't need to call it here, this is called in all workers anyway. Thanks
to Jiri Sasek <jiri.sasek@oracle.com> for finding this.

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Sep 20 05:03:54 CEST 2012 on sn-devel-104

Fix bug #9188 - idmap_hash crashes.

source3/winbindd/idmap_hash/idmap_hash.c

index 474387918e48354d27664958a0b5d59306b16014..59bcdbbcb782719e37894d918dde7651868e70e4 100644 (file)
@@ -259,7 +259,7 @@ done:
 
 static NTSTATUS nss_hash_init(struct nss_domain_entry *e )
 {
-       return be_init(NULL);
+       return NT_STATUS_OK;
 }
 
 /**********************************************************************