From: Hallvard Furuseth Date: Mon, 4 May 2015 19:05:57 +0000 (+0200) Subject: ITS#8092 fix previous fix. X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a59f336a61b828802c99b322458f1210a336c4ae;p=openldap ITS#8092 fix previous fix. slap_auxprop_lookup() returns void with old sasl versions. --- diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index 32bb691db3..137b7244cb 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -347,8 +347,10 @@ slap_auxprop_lookup( } /* we don't know anything about this, ignore it */ - if ( !conn ) - return SASL_OK; + if ( !conn ) { + rc == LDAP_SUCCESS; + goto done; + } /* Now see what else needs to be fetched */ for( i = 0; sl.list[i].name; i++ ) { @@ -503,6 +505,7 @@ retry_dontUseCopy:; } } } +done:; #if SASL_VERSION_FULL >= 0x020118 return rc != LDAP_SUCCESS ? SASL_FAIL : SASL_OK; #endif