From 2f0d712492e5ec330b9d1a0f84dba15b61040b2e Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 23 May 2005 21:59:14 +0000 Subject: [PATCH] exit on error --- servers/slapd/overlays/dynlist.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/servers/slapd/overlays/dynlist.c b/servers/slapd/overlays/dynlist.c index 4fd1ff04b7..3615ab16df 100644 --- a/servers/slapd/overlays/dynlist.c +++ b/servers/slapd/overlays/dynlist.c @@ -689,18 +689,17 @@ dynlist_db_open( { slap_overinst *on = (slap_overinst *) be->bd_info; dynlist_info *dli = (dynlist_info *)on->on_bi.bi_private; - int rc = 0; ber_len_t len; char *ptr; if ( dli->dli_oc == NULL ) { fprintf( stderr, "dynlist_db_open(): missing \"dynlist-oc \"\n" ); - rc = -1; + return -1; } if ( dli->dli_ad == NULL ) { fprintf( stderr, "dynlist_db_open(): missing \"dynlist-ad \"\n" ); - rc = -1; + return -1; } len = STRLENOF( "(!(objectClass=" "))" ) @@ -715,7 +714,7 @@ dynlist_db_open( ptr = lutil_strcopy( ptr, "))" ); dli->dli_default_filter.bv_len = ptr - dli->dli_default_filter.bv_val; - return rc; + return 0; } static int -- 2.39.5