From 4903dbcd76d46e3817c7ae6bcd61a1411a542406 Mon Sep 17 00:00:00 2001 From: Mark Valence Date: Tue, 9 Nov 1999 04:14:38 +0000 Subject: [PATCH] Bug fixes to do_extended(). --- servers/slapd/extended.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" ); -- 2.39.5