diff options
author | Ted Lemon <source@isc.org> | 2001-05-17 19:04:09 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 2001-05-17 19:04:09 +0000 |
commit | 31bbee784cecf4cd3f985cb6fd880148fcac3733 (patch) | |
tree | 138e7cc27349fd99ecfa2995a22775326efbf57f /omapip/support.c | |
parent | cb7cfe5cb72a27d803396fea67f28ef93ef787c2 (diff) | |
download | isc-dhcp-31bbee784cecf4cd3f985cb6fd880148fcac3733.tar.gz |
Sync with 3.0rc7
Diffstat (limited to 'omapip/support.c')
-rw-r--r-- | omapip/support.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/omapip/support.c b/omapip/support.c index 40a4fb99..6d2e8cc3 100644 --- a/omapip/support.c +++ b/omapip/support.c @@ -364,7 +364,9 @@ isc_result_t omapi_set_value_str (omapi_object_t *h, return status; memcpy (nds -> value, name, strlen (name)); - return omapi_set_value (h, id, nds, value); + status = omapi_set_value (h, id, nds, value); + omapi_data_string_dereference (&nds, MDL); + return status; } isc_result_t omapi_set_boolean_value (omapi_object_t *h, omapi_object_t *id, @@ -504,9 +506,12 @@ isc_result_t omapi_get_value_str (omapi_object_t *h, for (outer = h; outer -> outer; outer = outer -> outer) ; if (outer -> type -> get_value) - return (*(outer -> type -> get_value)) (outer, - id, nds, value); - return ISC_R_NOTFOUND; + status = (*(outer -> type -> get_value)) (outer, + id, nds, value); + else + status = ISC_R_NOTFOUND; + omapi_data_string_dereference (&nds, MDL); + return status; } isc_result_t omapi_stuff_values (omapi_object_t *c, |