]> git.sur5r.net Git - openldap/commitdiff
Bug fixes to do_extended().
authorMark Valence <mrv@openldap.org>
Tue, 9 Nov 1999 04:14:38 +0000 (04:14 +0000)
committerMark Valence <mrv@openldap.org>
Tue, 9 Nov 1999 04:14:38 +0000 (04:14 +0000)
servers/slapd/extended.c

index fd9573cebd82602481fda2c62585e6b3bf276ba1..68e5c4234c58c35c838644db78b5a608d2798b6b 100644 (file)
@@ -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" );