]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-sock/init.c
Merge remote-tracking branch 'origin/mdb.master'
[openldap] / servers / slapd / back-sock / init.c
index 73eb3c7ac682818a7e67191a857c9694754aac4e..ce145bc65eb76ca4ddbdb23e28db9cbbfe0d3618 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2007 The OpenLDAP Foundation.
+ * Copyright 2007-2012 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -38,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;
@@ -60,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
@@ -74,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;
 }