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;
}
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;
}
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 );
}