diff options
author | Ted Lemon <source@isc.org> | 1999-09-09 23:53:29 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 1999-09-09 23:53:29 +0000 |
commit | e92653f1ec74c9b0d0d00e674e4c55508aaac812 (patch) | |
tree | 4b770fb4ca46c95f1003092e2b8e484419d89a6a /omapip/protocol.c | |
parent | 110d0522237f98966865e0df853110a6aba1d9a5 (diff) | |
download | isc-dhcp-e92653f1ec74c9b0d0d00e674e4c55508aaac812.tar.gz |
Bug fixes courtesy of Brian Murrell
Diffstat (limited to 'omapip/protocol.c')
-rw-r--r-- | omapip/protocol.c | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/omapip/protocol.c b/omapip/protocol.c index 38d77411..a8b8dad7 100644 --- a/omapip/protocol.c +++ b/omapip/protocol.c @@ -257,8 +257,10 @@ isc_result_t omapi_protocol_signal_handler (omapi_object_t *h, case omapi_protocol_intro_wait: /* Get protocol version and header size in network byte order. */ - omapi_connection_get_uint32 (c, &p -> protocol_version); - omapi_connection_get_uint32 (c, &p -> header_size); + omapi_connection_get_uint32 + (c, (u_int32_t *)&p -> protocol_version); + omapi_connection_get_uint32 + (c, (u_int32_t *)&p -> header_size); /* We currently only support the current protocol version. */ if (p -> protocol_version != OMAPI_PROTOCOL_VERSION) { @@ -294,14 +296,20 @@ isc_result_t omapi_protocol_signal_handler (omapi_object_t *h, } /* Swap in the header... */ - omapi_connection_get_uint32 (c, &p -> message -> authid); + omapi_connection_get_uint32 + (c, (u_int32_t *)&p -> message -> authid); /* XXX bind the authenticator here! */ - omapi_connection_get_uint32 (c, &p -> message -> authlen); - omapi_connection_get_uint32 (c, &p -> message -> op); - omapi_connection_get_uint32 (c, &p -> message -> handle); - omapi_connection_get_uint32 (c, &p -> message -> id); - omapi_connection_get_uint32 (c, &p -> message -> rid); + omapi_connection_get_uint32 + (c, (u_int32_t *)&p -> message -> authlen); + omapi_connection_get_uint32 + (c, (u_int32_t *)&p -> message -> op); + omapi_connection_get_uint32 + (c, (u_int32_t *)&p -> message -> handle); + omapi_connection_get_uint32 + (c, (u_int32_t *)&p -> message -> id); + omapi_connection_get_uint32 + (c, (u_int32_t *)&p -> message -> rid); /* If there was any extra header data, skip over it. */ if (p -> header_size > sizeof (omapi_protocol_header_t)) { |