#define LDAP_CANCEL_NONE 0x00
#define LDAP_CANCEL_REQ 0x01
#define LDAP_CANCEL_ACK 0x02
-#define LDAP_CANCEL_NOTDONE 0x03
+#define LDAP_CANCEL_DONE 0x03
/*
* This structure represents both ldap messages and ldap responses.
+/* $OpenLDAP$ */
/*
* Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+/* $OpenLDAP$ */
/* cancel.c - LDAP cancel extended operation */
/*
* Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
rc = LDAP_SUCCESS;
} else {
rc = op->o_cancel;
- op->o_cancel = LDAP_CANCEL_NOTDONE;
}
+ op->o_cancel = LDAP_CANCEL_DONE;
+
return rc;
}
arg->co_op->o_cancel = LDAP_TOO_LATE;
while ( arg->co_op->o_cancel != LDAP_CANCEL_NONE &&
- arg->co_op->o_cancel != LDAP_CANCEL_ACK &&
- arg->co_op->o_cancel != LDAP_CANCEL_NOTDONE ) {
+ arg->co_op->o_cancel != LDAP_CANCEL_DONE ) {
ldap_pvt_thread_yield();
}