diff --git a/src/core/ipv4/dhcp.c b/src/core/ipv4/dhcp.c index eecf65af..e66bb50f 100644 --- a/src/core/ipv4/dhcp.c +++ b/src/core/ipv4/dhcp.c @@ -22,7 +22,7 @@ * to remove the DHCP client. * * @see LWIP_HOOK_DHCP_APPEND_OPTIONS - * @see LWIP_HOOK_DHCP_PARSE_OPTION + * @see LWIP_HOOK_DHCP_PARSE_OPTION * * @see netifapi_dhcp4 */ @@ -1881,7 +1881,7 @@ dhcp_create_msg(struct netif *netif, struct dhcp *dhcp, u8_t message_type) /* set ciaddr to netif->ip_addr based on message_type and state */ if ((message_type == DHCP_INFORM) || (message_type == DHCP_DECLINE) || (message_type == DHCP_RELEASE) || ((message_type == DHCP_REQUEST) && /* DHCP_STATE_BOUND not used for sending! */ - ((dhcp->state== DHCP_STATE_RENEWING) || dhcp->state== DHCP_STATE_REBINDING))) { + ((dhcp->state == DHCP_STATE_RENEWING) || dhcp->state == DHCP_STATE_REBINDING))) { ip4_addr_copy(dhcp->msg_out->ciaddr, *netif_ip4_addr(netif)); } ip4_addr_set_zero(&dhcp->msg_out->yiaddr);