2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

no more need to look up the object's handle to ensure validity of the

handle reference in omapi_object_dereference
This commit is contained in:
David Lawrence 2000-01-24 15:20:18 +00:00
parent 647189e3b5
commit e069f340d9

View File

@ -15,7 +15,7 @@
* SOFTWARE. * SOFTWARE.
*/ */
/* $Id: object.c,v 1.8 2000/01/24 05:33:59 tale Exp $ */ /* $Id: object.c,v 1.9 2000/01/24 15:20:18 tale Exp $ */
/* Principal Author: Ted Lemon */ /* Principal Author: Ted Lemon */
@ -135,9 +135,7 @@ omapi_object_dereference(omapi_object_t **h) {
* reference is stored and compare against that, and we don't * reference is stored and compare against that, and we don't
* want to do that if we can avoid it. * want to do that if we can avoid it.
*/ */
if ((*h)->handle != 0 && if ((*h)->handle != 0)
handle_lookup(&p, (*h)->handle) == ISC_R_SUCCESS &&
*h == p)
handle_reference = 1; handle_reference = 1;
/* /*