mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Bug fixes to do_extended().
This commit is contained in:
parent
c8aa051571
commit
4903dbcd76
1 changed files with 2 additions and 2 deletions
|
|
@ -63,7 +63,7 @@ do_extended(
|
|||
goto done;
|
||||
}
|
||||
|
||||
if ( ber_scanf( op->o_ber, "a", &reqoid ) == LBER_ERROR ) {
|
||||
if ( ber_scanf( op->o_ber, "{a" /*}*/, &reqoid ) == LBER_ERROR ) {
|
||||
Debug( LDAP_DEBUG_ANY, "do_extended: ber_scanf failed\n", 0, 0 ,0 );
|
||||
send_ldap_disconnect( conn, op,
|
||||
LDAP_PROTOCOL_ERROR, "decoding error" );
|
||||
|
|
@ -82,7 +82,7 @@ do_extended(
|
|||
tag = ber_peek_tag( op->o_ber, &len );
|
||||
|
||||
if( ber_peek_tag( op->o_ber, &len ) == LDAP_TAG_EXOP_REQ_VALUE ) {
|
||||
if( ber_scanf( op->o_ber, "o", &reqdata ) != LBER_ERROR ) {
|
||||
if( ber_scanf( op->o_ber, "o", &reqdata ) == LBER_ERROR ) {
|
||||
Debug( LDAP_DEBUG_ANY, "do_extended: ber_scanf failed\n", 0, 0 ,0 );
|
||||
send_ldap_disconnect( conn, op,
|
||||
LDAP_PROTOCOL_ERROR, "decoding error" );
|
||||
|
|
|
|||
Loading…
Reference in a new issue