diff options
| author | David Greenman <dg@FreeBSD.org> | 1996-03-18 11:09:03 +0000 |
|---|---|---|
| committer | David Greenman <dg@FreeBSD.org> | 1996-03-18 11:09:03 +0000 |
| commit | 1332892bcffe81108523006ec1fb44d162f01389 (patch) | |
| tree | 2625bf9e294cdad5ed33e8592edf1e1bc029c27a /libexec/ftpd | |
| parent | 6db03f75e492142103348d28df4b1bed04c67275 (diff) | |
Notes
Diffstat (limited to 'libexec/ftpd')
| -rw-r--r-- | libexec/ftpd/ftpd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index d59d80517352..1137d9f71a5f 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ftpd.c,v 1.13 1995/11/29 19:52:30 guido Exp $ + * $Id: ftpd.c,v 1.14 1996/01/01 08:35:11 peter Exp $ */ #ifndef lint @@ -1538,6 +1538,10 @@ passive() u_short port; char *p, *a; + if (pw == NULL) { + reply(530, "Please login with USER and PASS"); + return; + } pdata = socket(AF_INET, SOCK_STREAM, 0); if (pdata < 0) { perror_reply(425, "Can't open passive connection"); |
