Commit Diff


commit - d76910ce7b9fad5679b7c614ed086e036560e37d
commit + ed72bf4cebe47dda78a41fbeebe803caa13f2cfa
blob - 20077a41d45e8e7e6865672ccaaa333b7a513571
blob + b1487beff7bf7a8ee89b28f3913afe57ac26ebd6
--- src/ngircd/resolve.c
+++ src/ngircd/resolve.c
@@ -291,6 +291,8 @@ ForwardLookup(const char *hostname, array *IpAddr)
 	if (!Conf_ConnectIPv4)
 		hints.ai_family = AF_INET6;
 #endif
+	memset(&addr, 0, sizeof(addr));
+
 	res = getaddrinfo(hostname, NULL, &hints, &ai_results);
 	switch (res) {
 	case 0:	break;