s3: Fix idmap_hash
authorVolker Lendecke <vl@samba.org>
Tue, 18 Sep 2012 22:31:26 +0000 (15:31 -0700)
committerVolker Lendecke <vl@samba.org>
Thu, 20 Sep 2012 03:03:54 +0000 (05:03 +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

source3/winbindd/idmap_hash/idmap_hash.c

index cb518a8c6059f627d7d0b7c8cd05e300a5f84075..bff1e9e3fad336674201b032d22690cb889d5e75 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;
 }
 
 /**********************************************************************