From: Jukka Rissanen Date: Thu, 10 May 2012 13:21:52 +0000 (+0300) Subject: gdhcp: Message type is required in DHCPv4 X-Git-Tag: accepted/2.0alpha-wayland/20121110.002834~215 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a7232d6f304455e2388279b4462de42f789f7b9d;p=profile%2Fivi%2Fconnman.git gdhcp: Message type is required in DHCPv4 --- diff --git a/gdhcp/client.c b/gdhcp/client.c index c308b83..a51857f 100644 --- a/gdhcp/client.c +++ b/gdhcp/client.c @@ -1897,8 +1897,11 @@ static gboolean listener_event(GIOChannel *channel, GIOCondition condition, } else dhcp_client->status_code = 0; - } else + } else { message_type = dhcp_get_option(&packet, DHCP_MESSAGE_TYPE); + if (message_type == NULL) + return TRUE; + } if (message_type == NULL && client_id == NULL) /* No message type / client id option, ignore package */