From: Pierangelo Masarati Date: Sat, 13 Nov 2004 17:27:15 +0000 (+0000) Subject: sanity check X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~317 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=158067a46eaa45bfc6cdf1d499e7e515ec82e9bd;p=openldap sanity check --- diff --git a/servers/slapd/overlays/rwm.c b/servers/slapd/overlays/rwm.c index caa0d462b9..11b4da6635 100644 --- a/servers/slapd/overlays/rwm.c +++ b/servers/slapd/overlays/rwm.c @@ -1037,6 +1037,15 @@ rwm_suffixmassage_config( * defined as a valid suffix for the current server */ if ( argc == 2 ) { + if ( be->be_suffix == NULL ) { + fprintf( stderr, "%s: line %d: " + " \"suffixMassage []" + " \" without " + " part requires database " + "suffix be defined first.\n", + fname, lineno ); + return 1; + } bvnc = be->be_suffix[ 0 ]; massaged = 1;