From: Damien Neil Date: Sat, 15 Jul 2000 01:59:00 +0000 (+0000) Subject: Changed all uses of omapi_message_allocate() to omapi_message_new(), which X-Git-Tag: V3-BETA-2-PATCH-1~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db4cfe3b094f646a479a51afa562debe490a29c0;p=thirdparty%2Fdhcp.git Changed all uses of omapi_message_allocate() to omapi_message_new(), which properly initializes the internals of the message object. --- diff --git a/omapip/protocol.c b/omapip/protocol.c index adea07945..b254e2a08 100644 --- a/omapip/protocol.c +++ b/omapip/protocol.c @@ -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;