diff options
author | 2001-01-07 07:38:34 +0000 | |
---|---|---|
committer | 2001-01-07 07:38:34 +0000 | |
commit | 7bb9870fa56e22f35443a572b55a687da5cb017d (patch) | |
tree | 4dadb770999bb0a32d2349d38ce5365eea0b9fcf | |
parent | - add EMODD emulation (EMODF) -- this fixes modf() and some libm code (diff) | |
download | wireguard-openbsd-7bb9870fa56e22f35443a572b55a687da5cb017d.tar.xz wireguard-openbsd-7bb9870fa56e22f35443a572b55a687da5cb017d.zip |
Make the -P option effective (rjmooney@mediaone.net)
-rw-r--r-- | libexec/ftpd/ftpd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index fbd00532a68..50a36f7fe1d 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ftpd.c,v 1.86 2001/01/06 18:24:29 millert Exp $ */ +/* $OpenBSD: ftpd.c,v 1.87 2001/01/07 07:38:34 angelos Exp $ */ /* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */ /* @@ -1369,7 +1369,7 @@ dataconn(name, size, mode) pdata = -1; return (NULL); } - if (memcmp(fa, ha, alen) != 0) { + if (portcheck && memcmp(fa, ha, alen) != 0) { perror_reply(435, "Can't build data connection"); (void) close(pdata); (void) close(s); @@ -1434,7 +1434,7 @@ dataconn(name, size, mode) data = -1; return NULL; } - if (memcmp(fa, ha, alen) != 0) { + if (portcheck && memcmp(fa, ha, alen) != 0) { perror_reply(435, "Can't build data connection"); (void) fclose(file); data = -1; |