[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#3529) SLAPI plugins called multiple times with glue



--19701020
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline


See attached patch.


--19701020
Content-Type: text/plain; name="result.c.diff"; x-unix-mode=0644
Content-Disposition: attachment; filename="result.c.diff"

Index: result.c
===================================================================
RCS file: /repo/OpenLDAP/pkg/ldap/servers/slapd/result.c,v
retrieving revision 1.186.2.20
diff -u -r1.186.2.20 result.c
--- result.c	20 Jan 2005 17:01:09 -0000	1.186.2.20
+++ result.c	1 Feb 2005 07:24:22 -0000
@@ -611,7 +611,7 @@
 	 * should just set SLAPI_RESULT_CODE rather than sending a
 	 * result if they wish to change the result.
 	 */
-	if ( op->o_pb != NULL ) {
+	if ( op->o_callback == NULL && op->o_pb != NULL ) {
 		slapi_int_pblock_set_operation( op->o_pb, op );
 		slapi_pblock_set( op->o_pb, SLAPI_RESULT_CODE,
 			(void *)rs->sr_err );

--19701020
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline

--

--19701020--