o Clean the whole array of IPv4 addresses not just a local part.

PR:		218923
Submitted by:	Daniel McRobb
This commit is contained in:
maxim 2017-04-28 09:17:16 +00:00
parent f3d4e9b470
commit f3ea6fca9e

View File

@ -321,7 +321,7 @@ tcpdropconn(const struct in_conninfo *inc)
sizeof inc->inc6_faddr);
foreign = (struct sockaddr *)&sin6[TCPDROP_FOREIGN];
} else {
memset(&sin4[TCPDROP_LOCAL], 0, sizeof sin4[TCPDROP_LOCAL]);
memset(sin4, 0, sizeof sin4);
sin4[TCPDROP_LOCAL].sin_len = sizeof sin4[TCPDROP_LOCAL];
sin4[TCPDROP_LOCAL].sin_family = AF_INET;