diff options
author | Tom Yu <tlyu@mit.edu> | 1996-11-12 05:07:41 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 1996-11-12 05:07:41 +0000 |
commit | 2e4d2d25312a37be156c67080c79f7a315e63656 (patch) | |
tree | c8ac4a50dd214bf5b6754b962403ba3b378d8704 | |
parent | b59819d1f93c744ca6267407ba2241fe4aefc7f7 (diff) | |
download | krb5-2e4d2d25312a37be156c67080c79f7a315e63656.zip krb5-2e4d2d25312a37be156c67080c79f7a315e63656.tar.gz krb5-2e4d2d25312a37be156c67080c79f7a315e63656.tar.bz2 |
* ftpd.c (ftpd_userok): Don't undconditionally return -1
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9386 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/appl/gssftp/ftpd/ChangeLog | 4 | ||||
-rw-r--r-- | src/appl/gssftp/ftpd/ftpd.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/appl/gssftp/ftpd/ChangeLog b/src/appl/gssftp/ftpd/ChangeLog index e9d9d67..2a2e348 100644 --- a/src/appl/gssftp/ftpd/ChangeLog +++ b/src/appl/gssftp/ftpd/ChangeLog @@ -1,3 +1,7 @@ +Tue Nov 12 00:04:00 1996 Tom Yu <tlyu@mit.edu> + + * ftpd.c (ftpd_userok): Don't undconditionally return -1. + Thu Nov 7 15:38:51 1996 Theodore Ts'o <tytso@rsts-11.mit.edu> * ftpd.c (ftpd_userok): Check return value of krb5_init_context() diff --git a/src/appl/gssftp/ftpd/ftpd.c b/src/appl/gssftp/ftpd/ftpd.c index 9065466..b4a5794 100644 --- a/src/appl/gssftp/ftpd/ftpd.c +++ b/src/appl/gssftp/ftpd/ftpd.c @@ -2333,7 +2333,8 @@ ftpd_userok(client_name, name) krb5_error_code kerr; kerr = krb5_init_context(&kc); - return -1; + if (kerr) + return -1; kerr = krb5_parse_name(kc, client_name->value, &p); if (kerr) { retval = -1; goto fail; } |