From: Kurt Zeilenga Date: Sun, 10 Mar 2002 17:40:22 +0000 (+0000) Subject: Fix up handling of extended operations with no request data X-Git-Tag: OPENLDAP_REL_ENG_2_MP~363 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=902350f991fabc9fb070587ecf404af50bfa6a43;p=openldap Fix up handling of extended operations with no request data --- diff --git a/servers/slapd/extended.c b/servers/slapd/extended.c index ec49fe5c58..64e8cc2df4 100644 --- a/servers/slapd/extended.c +++ b/servers/slapd/extended.c @@ -107,6 +107,7 @@ do_extended( #else Debug( LDAP_DEBUG_TRACE, "do_extended\n", 0, 0, 0 ); #endif + if( op->o_protocol < LDAP_VERSION3 ) { #ifdef NEW_LOGGING LDAP_LOG(( "operation", LDAP_LEVEL_ERR, @@ -200,7 +201,7 @@ do_extended( refs = NULL; rc = (ext->ext_main)( conn, op, - reqoid.bv_val, &reqdata, + reqoid.bv_val, reqdata.bv_val ? &reqdata : NULL, &rspoid, &rspdata, &rspctrls, &text, &refs ); if( rc != SLAPD_ABANDON ) { @@ -294,7 +295,7 @@ find_extop( struct extop_list *list, struct berval *oid ) } -int +static int whoami_extop ( Connection *conn, Operation *op,