File 0018-ITS-8173-fix-SEGV-after-failed-retry.patch.patch of Package openldap2.17838

From 87ce22d64c8119533b37e36eb76a01932f6f09d6 Mon Sep 17 00:00:00 2001
From: HouzuoGuo <guohouzuo@gmail.com>
Date: Wed, 8 Nov 2017 11:30:40 +0100
Subject: [PATCH] 0018-ITS-8173-fix-SEGV-after-failed-retry.patch ITS#8173 fix
 SEGV after failed retry Signed-off-by: Nikola Pajkovsky <npajkovsky@suse.cz>


diff --git a/servers/slapd/back-ldap/bind.c b/servers/slapd/back-ldap/bind.c
index 87eef16..8be8172 100644
--- a/servers/slapd/back-ldap/bind.c
+++ b/servers/slapd/back-ldap/bind.c
@@ -273,6 +273,8 @@ retry:;
 		if ( ldap_back_retry( &lc, op, rs, LDAP_BACK_BIND_SERR ) ) {
 			goto retry;
 		}
+		if ( !lc )
+			return( rc );
 	}
 
 	ldap_pvt_thread_mutex_lock( &li->li_counter_mutex );
-- 
2.15.0
openSUSE Build Service is sponsored by