summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorcjs <cjs@NetBSD.org>1998-02-23 23:10:34 +0000
committercjs <cjs@NetBSD.org>1998-02-23 23:10:34 +0000
commit39926e4051408cb1bc3897128ea710b5332be5eb (patch)
tree866828d5fa9a9cab751e8f5751813e7d695984e3 /libexec
parent0ed9642fe09a192681dce4b37ee36cf6adcb2d25 (diff)
Send back an error message rather than dumping core when an invalid
username is entered. The latter, while effective, does not appear to me to be an appropriate response.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/ftpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 669f70fae37..df18439fef7 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ftpd.c,v 1.45 1998/02/01 14:10:22 christos Exp $ */
+/* $NetBSD: ftpd.c,v 1.46 1998/02/23 23:10:34 cjs Exp $ */
/*
* Copyright (c) 1985, 1988, 1990, 1992, 1993, 1994
@@ -44,7 +44,7 @@ __COPYRIGHT(
#if 0
static char sccsid[] = "@(#)ftpd.c 8.5 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: ftpd.c,v 1.45 1998/02/01 14:10:22 christos Exp $");
+__RCSID("$NetBSD: ftpd.c,v 1.46 1998/02/23 23:10:34 cjs Exp $");
#endif
#endif /* not lint */
@@ -642,7 +642,7 @@ pass(passwd)
rval = 1;
skip:
- if (pw->pw_expire && time(NULL) >= pw->pw_expire)
+ if (pw != NULL && pw->pw_expire && time(NULL) >= pw->pw_expire)
rval = 2;
/*
* If rval > 0, the user failed the authentication check