Zero a struct sockaddr_in before using it

Found by Dave Heart
This commit is contained in:
Sebastian Hahn 2011-04-23 02:22:08 +02:00
parent 744c7456c7
commit 646f9feb26

View File

@ -36,6 +36,7 @@
# endif
#endif
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "event2/event.h"
@ -130,6 +131,8 @@ launch_request(void)
struct request_info *ri;
memset(&sin, 0, sizeof(sin));
++total_n_launched;
sin.sin_family = AF_INET;