diff options
author | brian <brian@FreeBSD.org> | 1998-06-06 21:52:37 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-06-06 21:52:37 +0000 |
commit | e56ba1efb9b39b456e4a019b12c8359c640be8d3 (patch) | |
tree | ba2d835151f5833a2a95755dd72a64281c2cc700 /sys/netinet/libalias/alias_ftp.c | |
parent | 4f3d4b5dd9ddb42035f886c004060ef5a2cb2b45 (diff) | |
download | FreeBSD-src-e56ba1efb9b39b456e4a019b12c8359c640be8d3.zip FreeBSD-src-e56ba1efb9b39b456e4a019b12c8359c640be8d3.tar.gz |
Don't call PunchFWHole() ifdef NO_FW_PUNCH
Pointed out by: "Steve Sims" <SimsS@IBM.Net>
Diffstat (limited to 'sys/netinet/libalias/alias_ftp.c')
-rw-r--r-- | sys/netinet/libalias/alias_ftp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/libalias/alias_ftp.c b/sys/netinet/libalias/alias_ftp.c index df6d02c..c6d449d 100644 --- a/sys/netinet/libalias/alias_ftp.c +++ b/sys/netinet/libalias/alias_ftp.c @@ -152,8 +152,10 @@ NewFtpPortCommand(struct ip *pip, int slen, hlen, tlen, dlen; struct tcphdr *tc; +#ifndef NO_FW_PUNCH /* Punch hole in firewall */ PunchFWHole(ftp_link); +#endif /* Calculate data length of TCP packet */ tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2)); |