mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Fix warnings from sasl_errdetail
This commit is contained in:
parent
98a416b584
commit
315ac06912
@ -620,7 +620,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 = sasl_errdetail( ctx );
|
||||
ld->ld_error = (char *)sasl_errdetail( ctx );
|
||||
#endif
|
||||
return ld->ld_errno;
|
||||
}
|
||||
@ -716,7 +716,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 = sasl_errdetail( ctx );
|
||||
ld->ld_error = (char *)sasl_errdetail( ctx );
|
||||
#endif
|
||||
return ld->ld_errno;
|
||||
}
|
||||
@ -728,7 +728,7 @@ ldap_int_sasl_bind(
|
||||
|
||||
if ( saslrc != SASL_OK ) {
|
||||
#if SASL_VERSION_MAJOR >= 2
|
||||
ld->ld_error = sasl_errdetail( ctx );
|
||||
ld->ld_error = (char *)sasl_errdetail( ctx );
|
||||
#endif
|
||||
return ld->ld_errno = sasl_err2ldap( saslrc );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user