Index: openldap-2.4.10/libraries/libldap/tls.c
===================================================================
--- openldap-2.4.10.orig/libraries/libldap/tls.c	2008-06-24 16:10:00.128945991 +0200
+++ openldap-2.4.10/libraries/libldap/tls.c	2008-06-24 16:11:46.804929042 +0200
@@ -754,7 +754,10 @@
 			((tls_ctx*) lo->ldo_tls_ctx)->cred,
 			crlfile,
 			GNUTLS_X509_FMT_PEM );
-		if ( rc < 0 ) goto error_exit;
+		if ( rc < 0 )
+			goto error_exit;
+		else
+			rc = 0;
 	}
 	if ( is_server ) {
 		gnutls_dh_params_init (&((tls_ctx*) 
