]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-passwd/init.c
For dynamic modules, must explicitly zero BackendInfo structure in
[openldap] / servers / slapd / back-passwd / init.c
index 8db2b97d79a0395d1aee5c278457f214705573b8..5beac7415fd79e8c201648e9976e3465fea72961 100644 (file)
@@ -15,6 +15,7 @@
 G_MODULE_EXPORT void init_module(int argc, char *argv[]) {
    BackendInfo bi;
 
+   memset( &bi, 0, sizeof(bi) );
    bi.bi_type = "passwd";
    bi.bi_init = passwd_back_initialize;
 
@@ -49,9 +50,7 @@ passwd_back_initialize(
        bi->bi_op_delete = 0;
        bi->bi_op_abandon = 0;
 
-#ifdef SLAPD_ACLGROUPS
        bi->bi_acl_group = 0;
-#endif
 
        bi->bi_connection_init = 0;
        bi->bi_connection_destroy = 0;