summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1999-11-17 01:54:17 +0000
committerJohn Polstra <jdp@FreeBSD.org>1999-11-17 01:54:17 +0000
commit6b2bdf2c083d4f69ce5c25fb386e926ace4c6d19 (patch)
tree7645ba4a62a94cbd12b02416d859c685231674ef /lib
parent98af7850dd2149b2950f00cd5fa80078d6db4aba (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/rpc/svc_tcp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/rpc/svc_tcp.c b/lib/libc/rpc/svc_tcp.c
index a87b361e87a5..b0aafbfe745b 100644
--- a/lib/libc/rpc/svc_tcp.c
+++ b/lib/libc/rpc/svc_tcp.c
@@ -244,12 +244,11 @@ rendezvous_request(xprt)
return (FALSE);
}
/*
- * XXX careful for ftp bounce attacks. If discovered, close the
- * socket and look for another connection.
+ * Guard against FTP bounce attacks.
*/
if (addr.sin_port == htons(20)) {
close(sock);
- goto again;
+ return (FALSE);
}
/*
* make a new transporter (re-uses xprt)