Fix up handling of extended operations with no request data

This commit is contained in:
Kurt Zeilenga 2002-03-10 17:40:22 +00:00
parent ff8b039a4e
commit 902350f991

View File

@ -107,6 +107,7 @@ do_extended(
#else #else
Debug( LDAP_DEBUG_TRACE, "do_extended\n", 0, 0, 0 ); Debug( LDAP_DEBUG_TRACE, "do_extended\n", 0, 0, 0 );
#endif #endif
if( op->o_protocol < LDAP_VERSION3 ) { if( op->o_protocol < LDAP_VERSION3 ) {
#ifdef NEW_LOGGING #ifdef NEW_LOGGING
LDAP_LOG(( "operation", LDAP_LEVEL_ERR, LDAP_LOG(( "operation", LDAP_LEVEL_ERR,
@ -200,7 +201,7 @@ do_extended(
refs = NULL; refs = NULL;
rc = (ext->ext_main)( conn, op, rc = (ext->ext_main)( conn, op,
reqoid.bv_val, &reqdata, reqoid.bv_val, reqdata.bv_val ? &reqdata : NULL,
&rspoid, &rspdata, &rspctrls, &text, &refs ); &rspoid, &rspdata, &rspctrls, &text, &refs );
if( rc != SLAPD_ABANDON ) { if( rc != SLAPD_ABANDON ) {
@ -294,7 +295,7 @@ find_extop( struct extop_list *list, struct berval *oid )
} }
int static int
whoami_extop ( whoami_extop (
Connection *conn, Connection *conn,
Operation *op, Operation *op,