From: Kurt Zeilenga Date: Sun, 25 May 2003 01:10:36 +0000 (+0000) Subject: Duplicate error messages to be returned X-Git-Tag: OPENLDAP_REL_ENG_2_1_21~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00e91a29993557c0d348a963411ffe1bcc7caade;p=thirdparty%2Fopenldap.git Duplicate error messages to be returned --- diff --git a/libraries/libldap/cyrus.c b/libraries/libldap/cyrus.c index 742d136417..686ff76ad2 100644 --- a/libraries/libldap/cyrus.c +++ b/libraries/libldap/cyrus.c @@ -613,7 +613,7 @@ ldap_int_sasl_bind( if ( (saslrc != SASL_OK) && (saslrc != SASL_CONTINUE) ) { rc = ld->ld_errno = sasl_err2ldap( saslrc ); #if SASL_VERSION_MAJOR >= 2 - ld->ld_error = (char *)sasl_errdetail( ctx ); + ld->ld_error = LDAP_STRDUP( sasl_errdetail( ctx ) ); #endif goto done; } @@ -701,7 +701,7 @@ ldap_int_sasl_bind( if ( (saslrc != SASL_OK) && (saslrc != SASL_CONTINUE) ) { ld->ld_errno = sasl_err2ldap( saslrc ); #if SASL_VERSION_MAJOR >= 2 - ld->ld_error = (char *)sasl_errdetail( ctx ); + ld->ld_error = LDAP_STRDUP( sasl_errdetail( ctx ) ); #endif rc = ld->ld_errno; goto done; @@ -712,7 +712,7 @@ ldap_int_sasl_bind( if ( saslrc != SASL_OK ) { #if SASL_VERSION_MAJOR >= 2 - ld->ld_error = (char *)sasl_errdetail( ctx ); + ld->ld_error = LDAP_STRDUP( sasl_errdetail( ctx ) ); #endif rc = ld->ld_errno = sasl_err2ldap( saslrc ); goto done;