Skip to content

Commit

Permalink
gdhcp: Avoid leaking stack data via unitiialized variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Wee authored and LaakkonenJussi committed Feb 8, 2021
1 parent 9bc16c0 commit fbf9f79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connman/gdhcp/client.c
Expand Up @@ -2293,7 +2293,7 @@ static gboolean listener_event(GIOChannel *channel, GIOCondition condition,
{
GDHCPClient *dhcp_client = user_data;
struct sockaddr_in dst_addr = { 0 };
struct dhcp_packet packet;
struct dhcp_packet packet = { 0 };
struct dhcpv6_packet *packet6 = NULL;
uint8_t *message_type = NULL, *client_id = NULL, *option,
*server_id = NULL;
Expand Down

0 comments on commit fbf9f79

Please sign in to comment.