X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Fsasl.c;h=2d47636b7c175e6dca2c4ad209451228ae2d26e9;hb=966616b274d24c45b1f3a71ff35ddd502153b4a1;hp=12cb3816638676ba485978f53ffef7c5731fa1a6;hpb=5f25c10980d24df1ea2d4eb9e3696529737522c6;p=openldap diff --git a/libraries/libldap/sasl.c b/libraries/libldap/sasl.c index 12cb381663..2d47636b7c 100644 --- a/libraries/libldap/sasl.c +++ b/libraries/libldap/sasl.c @@ -67,6 +67,10 @@ ldap_sasl_bind( assert( LDAP_VALID( ld ) ); assert( msgidp != NULL ); + /* check client controls */ + rc = ldap_int_client_controls( ld, cctrls ); + if( rc != LDAP_SUCCESS ) return rc; + if( msgidp == NULL ) { ld->ld_errno = LDAP_PARAM_ERROR; return ld->ld_errno; @@ -93,7 +97,7 @@ ldap_sasl_bind( return ld->ld_errno; } - assert( BER_VALID( ber ) ); + assert( LBER_VALID( ber ) ); if( mechanism == LDAP_SASL_SIMPLE ) { /* simple bind */