From e069f340d9628ef9f556d3e8e5a1daee6a8bec4f Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Mon, 24 Jan 2000 15:20:18 +0000 Subject: [PATCH] no more need to look up the object's handle to ensure validity of the handle reference in omapi_object_dereference --- lib/omapi/object.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/omapi/object.c b/lib/omapi/object.c index 34a2866165..cb95c6aa36 100644 --- a/lib/omapi/object.c +++ b/lib/omapi/object.c @@ -15,7 +15,7 @@ * 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 */ @@ -135,9 +135,7 @@ omapi_object_dereference(omapi_object_t **h) { * reference is stored and compare against that, and we don't * want to do that if we can avoid it. */ - if ((*h)->handle != 0 && - handle_lookup(&p, (*h)->handle) == ISC_R_SUCCESS && - *h == p) + if ((*h)->handle != 0) handle_reference = 1; /*