Skip to content

Commit

Permalink
[udp] remember to memset freshly allocated memory
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
  • Loading branch information
fabbione committed Feb 14, 2017
1 parent b2693bb commit 3a64f53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libknet/transport_udp.c
Expand Up @@ -260,6 +260,8 @@ static int udp_transport_init(knet_handle_t knet_h)
return -1;
}

memset(handle_info, 0, sizeof(udp_handle_info_t));

knet_h->transports[KNET_TRANSPORT_UDP] = handle_info;

knet_list_init(&handle_info->links_list);
Expand Down

0 comments on commit 3a64f53

Please sign in to comment.