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 Konovalov 2017-04-28 09:17:16 +00:00
parent 6c87a2c0ee
commit 7c415819be

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;