--- servers/slapd/back-sock/init.c 2007/09/07 10:04:55 1.1
+++ servers/slapd/back-sock/init.c 2007/12/24 04:18:26 1.3
@@ -1,5 +1,5 @@
/* init.c - initialize sock backend */
-/* $OpenLDAP$ */
+/* $OpenLDAP: pkg/ldap/servers/slapd/back-sock/init.c,v 1.2 2007/09/07 10:20:24 hyc Exp $ */
/* This work is part of OpenLDAP Software .
*
* Copyright 2007 The OpenLDAP Foundation.
@@ -13,6 +13,10 @@
* top-level directory of the distribution or, alternatively, at
* .
*/
+/* ACKNOWLEDGEMENTS:
+ * This work was initially developed by Brian Candler for inclusion
+ * in OpenLDAP Software.
+ */
#include "portable.h"
@@ -34,7 +38,7 @@ sock_back_initialize(
bi->bi_destroy = 0;
bi->bi_db_init = sock_back_db_init;
- bi->bi_db_config = sock_back_db_config;
+ bi->bi_db_config = 0;
bi->bi_db_open = 0;
bi->bi_db_close = 0;
bi->bi_db_destroy = sock_back_db_destroy;
@@ -56,7 +60,7 @@ sock_back_initialize(
bi->bi_connection_init = 0;
bi->bi_connection_destroy = 0;
- return 0;
+ return sock_back_init_cf( bi );
}
int
@@ -70,6 +74,7 @@ sock_back_db_init(
si = (struct sockinfo *) ch_calloc( 1, sizeof(struct sockinfo) );
be->be_private = si;
+ be->be_cf_ocs = be->bd_info->bi_cf_ocs;
return si == NULL;
}