diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2012-05-10 16:31:58 +0300 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-05-11 10:19:42 +0300 |
commit | 99cf044b1796c0698e58d6bb1f1647521a029e8e (patch) | |
tree | 011d7530ac5cfe7fe2b9e6aac1530a1b68bc8c42 /gdhcp | |
parent | a7232d6f304455e2388279b4462de42f789f7b9d (diff) | |
download | connman-99cf044b1796c0698e58d6bb1f1647521a029e8e.tar.gz connman-99cf044b1796c0698e58d6bb1f1647521a029e8e.tar.bz2 connman-99cf044b1796c0698e58d6bb1f1647521a029e8e.zip |
gdhcp: Make sure we have the message before accessing it
Diffstat (limited to 'gdhcp')
-rw-r--r-- | gdhcp/client.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdhcp/client.c b/gdhcp/client.c index a51857fa..ec1b2a2c 100644 --- a/gdhcp/client.c +++ b/gdhcp/client.c @@ -1865,6 +1865,9 @@ static gboolean listener_event(GIOChannel *channel, GIOCondition condition, return TRUE; if (dhcp_client->type == G_DHCP_IPV6) { + if (packet6 == NULL) + return TRUE; + count = 0; client_id = dhcpv6_get_option(packet6, pkt_len, G_DHCPV6_CLIENTID, &option_len, &count); |