]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Send handle in response to messages - do not volunteer it.
authorTed Lemon <source@isc.org>
Thu, 9 Sep 1999 23:31:21 +0000 (23:31 +0000)
committerTed Lemon <source@isc.org>
Thu, 9 Sep 1999 23:31:21 +0000 (23:31 +0000)
omapip/protocol.c

index bac5fe84bbd002118988ce1ab603d0fbe3637ded..38d77411db58da434a38f9c30fcdd63e1b166a38 100644 (file)
@@ -771,6 +771,7 @@ isc_result_t omapi_protocol_send_update (omapi_object_t *po,
        }
 
        if (rid) {
+               omapi_handle_t handle;
                status = omapi_set_int_value (message, (omapi_object_t *)0,
                                              "rid", rid);
                if (status != ISC_R_SUCCESS) {
@@ -778,8 +779,7 @@ isc_result_t omapi_protocol_send_update (omapi_object_t *po,
                                (&message, "omapi_protocol_send_update");
                        return status;
                }
-       } else {
-               omapi_handle_t handle;
+
                status = omapi_object_handle (&handle, object);
                if (status != ISC_R_SUCCESS) {
                        omapi_object_dereference