From 99cf044b1796c0698e58d6bb1f1647521a029e8e Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Thu, 10 May 2012 16:31:58 +0300 Subject: gdhcp: Make sure we have the message before accessing it --- gdhcp/client.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdhcp') 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); -- cgit v1.2.3