X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fconfiginfo.c;h=df64293da42e206ad9e0f58336282c41176373b0;hb=749404b83fa8dac94c75dc39dce8e5d80cda9a7f;hp=5599193006cdf4a53cdc6f32354036aaf5ad9d4c;hpb=42e0d83cb3a1a1c5b25183f1ab74ce7edbe25de7;p=openldap diff --git a/servers/slapd/configinfo.c b/servers/slapd/configinfo.c index 5599193006..df64293da4 100644 --- a/servers/slapd/configinfo.c +++ b/servers/slapd/configinfo.c @@ -10,19 +10,18 @@ * is provided ``as is'' without express or implied warranty. */ +#include "portable.h" + #include -#include -#include -#include -#include "slap.h" + +#include +#include + #include "ldapconfig.h" +#include "slap.h" #if defined( SLAPD_CONFIG_DN ) -extern int nbackends; -extern Backend *backends; -extern char *default_referral; - /* * no mutex protection in here - take our chances! */ @@ -40,8 +39,10 @@ config_info( Connection *conn, Operation *op ) vals[1] = NULL; e = (Entry *) ch_calloc( 1, sizeof(Entry) ); + e->e_attrs = NULL; - e->e_dn = strdup( SLAPD_CONFIG_DN ); + e->e_dn = ch_strdup( SLAPD_CONFIG_DN ); + e->e_private = NULL; for ( i = 0; i < nbackends; i++ ) { strcpy( buf, backends[i].be_type );