mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue