summaryrefslogtreecommitdiff
path: root/gdhcp
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-05-10 16:21:52 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-05-11 10:19:31 +0300
commita7232d6f304455e2388279b4462de42f789f7b9d (patch)
tree1c7a592a6a951286be782178259950a88cc1ce19 /gdhcp
parentadab94e094f00a5183097fd970db111c040ae65e (diff)
downloadconnman-a7232d6f304455e2388279b4462de42f789f7b9d.tar.gz
connman-a7232d6f304455e2388279b4462de42f789f7b9d.tar.bz2
connman-a7232d6f304455e2388279b4462de42f789f7b9d.zip
gdhcp: Message type is required in DHCPv4
Diffstat (limited to 'gdhcp')
-rw-r--r--gdhcp/client.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdhcp/client.c b/gdhcp/client.c
index c308b836..a51857fa 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 */