diff options
| author | John Polstra <jdp@FreeBSD.org> | 1999-11-17 17:53:03 +0000 |
|---|---|---|
| committer | John Polstra <jdp@FreeBSD.org> | 1999-11-17 17:53:03 +0000 |
| commit | 49c60b9baf63e31753f42f86e579fc9de999268d (patch) | |
| tree | 6799ed1d65b43f092a149ca82bde9c2e1909ee6d /lib/libc | |
| parent | 398c8ab3ea921d369fe211fbdc990da5173bae5d (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/rpc/svc_tcp.c | 5 |
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) |
