mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-09 02:52:04 +08:00
check return value
This commit is contained in:
parent
6631d41c16
commit
cd1fb3003c
@ -282,14 +282,20 @@ vc_exop(
|
||||
rs->sr_err = frontendDB->be_bind( conn->op, &rs2 );
|
||||
|
||||
if ( conn->op->o_conn->c_sasl_bind_in_progress ) {
|
||||
vc_create_response( conn,
|
||||
rc = vc_create_response( conn,
|
||||
!BER_BVISEMPTY( &sasldata ) ? &sasldata : NULL,
|
||||
NULL, &rs->sr_rspdata );
|
||||
|
||||
} else {
|
||||
vc_create_response( NULL, NULL,
|
||||
rc = vc_create_response( NULL, NULL,
|
||||
&conn->op->o_conn->c_dn, &rs->sr_rspdata );
|
||||
}
|
||||
|
||||
if ( rc != 0 ) {
|
||||
rs->sr_err = LDAP_OTHER;
|
||||
goto done;
|
||||
}
|
||||
|
||||
if ( !BER_BVISNULL( &conn->op->o_conn->c_dn ) &&
|
||||
conn->op->o_conn->c_dn.bv_val != conn->op->o_conn->c_ndn.bv_val )
|
||||
ber_memfree( conn->op->o_conn->c_dn.bv_val );
|
||||
|
Loading…
Reference in New Issue
Block a user