From 401bd7495a1b3a85b968e89a55f122d1c88aefbb Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 17 Aug 1998 21:10:02 +0000 Subject: [PATCH] Fixed uninitialized Backend pointer. --- Make-common | 10 +++++----- servers/slapd/tools/ldif2id2children.c | 2 +- servers/slapd/tools/ldif2index.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Make-common b/Make-common index 567d9f3bf8..800a743742 100644 --- a/Make-common +++ b/Make-common @@ -117,7 +117,7 @@ EXTRALDFLAGS=-g MAKESLAPD= yes # # remove the defines for backends you don't want to enable -SLAPD_BACKENDS= -DLDAP_LDBM -DLDAP_SHELL -DLDAP_PASSWD +SLAPD_BACKENDS= -DLDAP_LDBM # -DLDAP_SHELL -DLDAP_PASSWD # # If you have included -DLDAP_LDBM in the SLAPD_BACKENDS line you need # to specify which low-level database package to use. There are @@ -199,13 +199,13 @@ LDAP_DEBUG=-DLDAP_DEBUG LDAP_REFERRALS=-DLDAP_REFERRALS # uncomment these lines to enable support for CRYPT passwords in LDBM. -#LDAP_CRYPT=-DLDAP_CRYPT -#LDAP_CRYPT_LIB=-lcrypt +LDAP_CRYPT=-DLDAP_CRYPT +LDAP_CRYPT_LIB=-lcrypt # uncomment these lines to enable support fro tcp_wrappers in servers. # Requires tcp_wrappers. -#LDAP_TCP_WRAPPERS=-DTCP_WRAPPERS -I/usr/local/include -#LDAP_TCP_WRAPPERS_LIB=-L/usr/local/lib -lwrap +LDAP_TCP_WRAPPERS=-DTCP_WRAPPERS -I/usr/local/include +LDAP_TCP_WRAPPERS_LIB=-L/usr/local/lib -lwrap # uncomment this line to use soundex for approximate matches in slapd. # the default is to use the metaphone algorithm. diff --git a/servers/slapd/tools/ldif2id2children.c b/servers/slapd/tools/ldif2id2children.c index b53ed8cdd3..3267c211f9 100644 --- a/servers/slapd/tools/ldif2id2children.c +++ b/servers/slapd/tools/ldif2id2children.c @@ -63,7 +63,7 @@ main( int argc, char **argv ) int dbnum; ID id; struct dbcache *db, *db2; - Backend *be; + Backend *be = NULL; struct berval bv; struct berval *vals[2]; Avlnode *avltypes = NULL; diff --git a/servers/slapd/tools/ldif2index.c b/servers/slapd/tools/ldif2index.c index 20156d2b7d..31d5701ac9 100644 --- a/servers/slapd/tools/ldif2index.c +++ b/servers/slapd/tools/ldif2index.c @@ -53,7 +53,7 @@ main( int argc, char **argv ) int lmax, lcur, indexmask, syntaxmask; int dbnum; unsigned long id; - Backend *be; + Backend *be = NULL; struct berval bv; struct berval *vals[2]; extern char *optarg; -- 2.39.5