summaryrefslogtreecommitdiff
path: root/omapip/generic.c
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1999-09-08 01:48:56 +0000
committerTed Lemon <source@isc.org>1999-09-08 01:48:56 +0000
commit581e37e47f20523988f8313e616216b77ba8da93 (patch)
treed68624cb1aa4419517a447868396279718f0c73a /omapip/generic.c
parentd596e1392034a4203b0a6a256b74deda4e8ba32c (diff)
downloadisc-dhcp-581e37e47f20523988f8313e616216b77ba8da93.tar.gz
Debugging sweep, added some new functionality
Diffstat (limited to 'omapip/generic.c')
-rw-r--r--omapip/generic.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/omapip/generic.c b/omapip/generic.c
index 6c1ac3ce..7cc43676 100644
--- a/omapip/generic.c
+++ b/omapip/generic.c
@@ -96,11 +96,12 @@ isc_result_t omapi_generic_set_value (omapi_object_t *h,
/* If the name isn't already attached to this object, see if an
inner object has it. */
- if (h -> inner && h -> inner -> type -> set_value)
+ if (h -> inner && h -> inner -> type -> set_value) {
status = ((*(h -> inner -> type -> set_value))
(h -> inner, id, name, value));
- if (status != ISC_R_NOTFOUND)
- return status;
+ if (status != ISC_R_NOTFOUND)
+ return status;
+ }
/* Okay, so it's a value that no inner object knows about, and
(implicitly, since the outer object set_value method would
@@ -228,8 +229,8 @@ isc_result_t omapi_generic_stuff_values (omapi_object_t *c,
(c, src -> values [i] -> name -> len));
if (status != ISC_R_SUCCESS)
return status;
- status = (omapi_connection_copyout
- (src -> values [i] -> name -> value, c,
+ status = (omapi_connection_copyin
+ (c, src -> values [i] -> name -> value,
src -> values [i] -> name -> len));
if (status != ISC_R_SUCCESS)
return status;