projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7232d6
)
gdhcp: Make sure we have the message before accessing it
author
Jukka Rissanen
<jukka.rissanen@linux.intel.com>
Thu, 10 May 2012 13:31:58 +0000
(16:31 +0300)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Fri, 11 May 2012 07:19:42 +0000
(10:19 +0300)
gdhcp/client.c
patch
|
blob
|
history
diff --git
a/gdhcp/client.c
b/gdhcp/client.c
index
a51857f
..
ec1b2a2
100644
(file)
--- 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);