From a65f04e413773cf23f11546a248570c199ca5eba Mon Sep 17 00:00:00 2001 From: nate Date: Fri, 10 Jan 1997 08:32:05 +0000 Subject: [PATCH] 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 --- usr.sbin/ppp/alias_db.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/ppp/alias_db.c b/usr.sbin/ppp/alias_db.c index 420494bac1bf..f144c0be14ef 100644 --- a/usr.sbin/ppp/alias_db.c +++ b/usr.sbin/ppp/alias_db.c @@ -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);