diff options
author | Ezra Peisach <epeisach@mit.edu> | 1995-04-27 13:17:59 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 1995-04-27 13:17:59 +0000 |
commit | 8c6a3a0d276bbb877c0a01b8ac8f18da25876b0b (patch) | |
tree | 6ecbc5a3e5ef77d5e24d274cf43c7173042943ef /src/appl/bsd/krcp.c | |
parent | 13b030a5f8bc8ed9ecfcb77cfd60eb1985593b44 (diff) | |
download | krb5-8c6a3a0d276bbb877c0a01b8ac8f18da25876b0b.tar.gz krb5-8c6a3a0d276bbb877c0a01b8ac8f18da25876b0b.tar.xz krb5-8c6a3a0d276bbb877c0a01b8ac8f18da25876b0b.zip |
* krcp.c (answer_auth): Should not call krb5_cc_close after
krb5_cc_destroy. (encrypted rcp failed).
* krlogind.c (main): -S option was not getting a keytab. (passing
a char * to krb5_compat_recvauth).
* krshd.c (recvauth): extract the client principal from ticket
before calling krb5_kuserok on a NULL principal.
(main): -S option was not getting a keytab (passing a char *).
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5536 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl/bsd/krcp.c')
-rw-r--r-- | src/appl/bsd/krcp.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/appl/bsd/krcp.c b/src/appl/bsd/krcp.c index eb139acc9..7aa446530 100644 --- a/src/appl/bsd/krcp.c +++ b/src/appl/bsd/krcp.c @@ -1324,13 +1324,11 @@ void if (status = krb5_cc_get_principal(bsd_context, cc, &creds.client)){ krb5_cc_destroy(bsd_context, cc); - krb5_cc_close(bsd_context, cc); exit(1); } if (status = krb5_parse_name(bsd_context, pname_data.data, &creds.server)){ krb5_cc_destroy(bsd_context, cc); - krb5_cc_close(bsd_context, cc); exit(1); } krb5_xfree(pname_data.data); @@ -1338,7 +1336,6 @@ void if (status = krb5_get_credentials(bsd_context, KRB5_GC_USER_USER, cc, &creds, &new_creds)){ krb5_cc_destroy(bsd_context, cc); - krb5_cc_close(bsd_context, cc); exit(1); } @@ -1346,11 +1343,9 @@ void AP_OPTS_USE_SESSION_KEY, NULL, new_creds, &msg)) { krb5_cc_destroy(bsd_context, cc); - krb5_cc_close(bsd_context, cc); exit(1); } krb5_cc_destroy(bsd_context, cc); - krb5_cc_close(bsd_context, cc); status = krb5_write_message(bsd_context, (krb5_pointer) &rem, &msg); krb5_xfree(msg.data); if (status){ |