572
573
status = omapi_get_value_str (ref, id, "handle", &tv);
573
574
if (status == ISC_R_SUCCESS) {
574
575
status = omapi_handle_td_lookup (lp, tv -> value);
576
577
omapi_value_dereference (&tv, MDL);
577
578
if (status != ISC_R_SUCCESS)
580
581
/* Don't return the object if the type is wrong. */
581
582
if ((*lp) -> type != dhcp_type_control) {
582
583
omapi_object_dereference (lp, MDL);