The 2.2-Beta version doesn't have the brackets after the if statement.
This has the effect of making every link a "passthrough" which means the TCP or UDP port won't be freed after link deletion -- so there could be eventual port exhaustion if the program were allowed to operate long enough. Submitted by: Charles Mott <cmott@srv.net>
This commit is contained in:
parent
99c02d39bc
commit
11f1a97fce
@ -674,12 +674,13 @@ u_short dst_port, alias_port;
|
||||
link = FindLink2(dst_addr, dst_port, alias_port, LINK_UDP);
|
||||
|
||||
#ifdef ALLOW_INCOMING
|
||||
if (link == NULL_PTR)
|
||||
if (link == NULL_PTR) {
|
||||
link = AddLink(GetAliasAddress(), dst_addr,
|
||||
alias_port, dst_port, alias_port,
|
||||
LINK_UDP);
|
||||
if (link != NULL_PTR)
|
||||
((struct link_record *) link)->passthrough = 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
return(link);
|
||||
|
Loading…
Reference in New Issue
Block a user