From: Mark Valence Date: Tue, 9 Nov 1999 04:14:38 +0000 (+0000) Subject: Bug fixes to do_extended(). X-Git-Tag: UCDATA_2_4~223 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4903dbcd76d46e3817c7ae6bcd61a1411a542406;p=openldap Bug fixes to do_extended(). --- diff --git a/servers/slapd/extended.c b/servers/slapd/extended.c index fd9573cebd..68e5c4234c 100644 --- a/servers/slapd/extended.c +++ b/servers/slapd/extended.c @@ -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" );