From 158067a46eaa45bfc6cdf1d499e7e515ec82e9bd Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 13 Nov 2004 17:27:15 +0000 Subject: [PATCH] sanity check --- servers/slapd/overlays/rwm.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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; -- 2.39.5