]> git.sur5r.net Git - openldap/commitdiff
Remove extraneous ber_peek_tag() call
authorKurt Zeilenga <kurt@openldap.org>
Fri, 27 Aug 2010 21:44:00 +0000 (21:44 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 27 Aug 2010 21:44:00 +0000 (21:44 +0000)
servers/slapd/extended.c

index 8030803eb902522b2809cbd170e1ebfdf8c3af93..a105ddfaa775b036b59cb3822ce927336acaa15d 100644 (file)
@@ -120,7 +120,6 @@ do_extended(
 )
 {
        struct berval reqdata = {0, NULL};
-       ber_tag_t tag;
        ber_len_t len;
 
        Debug( LDAP_DEBUG_TRACE, "%s do_extended\n",
@@ -142,8 +141,6 @@ do_extended(
                goto done;
        }
 
-       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, "m", &reqdata ) == LBER_ERROR ) {
                        Debug( LDAP_DEBUG_ANY, "%s do_extended: ber_scanf failed\n",