o Clean the whole array of IPv4 addresses not just a local part.
PR: 218923 Submitted by: Daniel McRobb
This commit is contained in:
parent
6c87a2c0ee
commit
7c415819be
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user