]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/result.c
slapi fixes
[openldap] / servers / slapd / result.c
index 13cb5ccd1e3b249a25f374ed1a53f4f786df3ef8..0a6203826fe0f4e354cb77390c3b8556f02db53b 100644 (file)
@@ -618,7 +618,7 @@ slap_send_ldap_result( Operation *op, SlapReply *rs )
         * 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 );