]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Changed all uses of omapi_message_allocate() to omapi_message_new(), which
authorDamien Neil <source@isc.org>
Sat, 15 Jul 2000 01:59:00 +0000 (01:59 +0000)
committerDamien Neil <source@isc.org>
Sat, 15 Jul 2000 01:59:00 +0000 (01:59 +0000)
properly initializes the internals of the message object.

omapip/protocol.c

index adea07945923b58825e9a1f7a29983afab340b91..b254e2a08510ce5dacfa742ce6a491ee82a26c05 100644 (file)
@@ -306,7 +306,8 @@ isc_result_t omapi_protocol_signal_handler (omapi_object_t *h,
                /* If we already have the data, fall through. */
 
              case omapi_protocol_header_wait:
-               status = omapi_message_allocate (&p -> message, MDL);
+               status = omapi_message_new ((omapi_object_t **)&p -> message,
+                                           MDL);
                if (status != ISC_R_SUCCESS) {
                        omapi_disconnect (c, 1);
                        return status;
@@ -712,7 +713,7 @@ isc_result_t omapi_protocol_send_status (omapi_object_t *po,
        if (po -> type != omapi_type_protocol)
                return ISC_R_INVALIDARG;
 
-       status = omapi_message_allocate (&message, MDL);
+       status = omapi_message_new ((omapi_object_t **)&message, MDL);
        if (status != ISC_R_SUCCESS)
                return status;
        mo = (omapi_object_t *)message;
@@ -765,7 +766,7 @@ isc_result_t omapi_protocol_send_update (omapi_object_t *po,
        if (po -> type != omapi_type_protocol)
                return ISC_R_INVALIDARG;
 
-       status = omapi_message_allocate (&message, MDL);
+       status = omapi_message_new ((omapi_object_t **)&message, MDL);
        if (status != ISC_R_SUCCESS)
                return status;
        mo = (omapi_object_t *)message;