mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 14:02:05 -04: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:
parent
647189e3b5
commit
e069f340d9
1 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue