Index: src/sockets/socket.cpp =================================================================== --- src/sockets/socket.cpp (revision 327) +++ src/sockets/socket.cpp (working copy) @@ -18,6 +18,7 @@ #include #include +#include #include #include "twinkle_config.h" #include "socket.h" @@ -184,6 +185,7 @@ // Initialize message header to receive the ancillary data for // an ICMP message. + memset(&msgh, 0, sizeof(struct msghdr)); msgh.msg_control = buf; msgh.msg_controllen = 256; msgh.msg_name = &dest_addr;