diff options
author | Alexandra Ellwood <lxs@mit.edu> | 2008-03-10 19:24:18 +0000 |
---|---|---|
committer | Alexandra Ellwood <lxs@mit.edu> | 2008-03-10 19:24:18 +0000 |
commit | 72d47a63bbfcdcb8c6fc642d2a511f4619066e3c (patch) | |
tree | 9295767b3c2a2cf2f86396d057a88b2ff3793b35 | |
parent | 217302777ab511c28b45a333ac61e36552f8937a (diff) | |
download | krb5-72d47a63bbfcdcb8c6fc642d2a511f4619066e3c.tar.gz krb5-72d47a63bbfcdcb8c6fc642d2a511f4619066e3c.tar.xz krb5-72d47a63bbfcdcb8c6fc642d2a511f4619066e3c.zip |
Fix pointer cast in cc_seq_fetch_NCs_end
cc_seq_fetch_NCs_end incorrectly casts from CCAPI v2 to CCAPI v3 types.
Cleaned up cc_seq_fetch_creds_end at the same time (it was correct but
difficult to read).
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20262 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/ccapi/lib/ccapi_v2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ccapi/lib/ccapi_v2.c b/src/ccapi/lib/ccapi_v2.c index 8a25ae6e9f..3050fd1e6b 100644 --- a/src/ccapi/lib/ccapi_v2.c +++ b/src/ccapi/lib/ccapi_v2.c @@ -681,7 +681,7 @@ cc_result cc_seq_fetch_NCs_end (apiCB *in_context, ccache_cit **io_iterator) { cc_result err = ccNoError; - cc_ccache_iterator_t iterator = (cc_ccache_iterator_t) io_iterator; + cc_ccache_iterator_t iterator = (cc_ccache_iterator_t) *io_iterator; if (!in_context ) { err = cci_check_error (ccErrBadParam); } if (!io_iterator) { err = cci_check_error (ccErrBadParam); } @@ -779,13 +779,13 @@ cc_result cc_seq_fetch_creds_end (apiCB *in_context, ccache_cit **io_iterator) { cc_result err = ccNoError; - cc_credentials_iterator_t *iterator = (cc_credentials_iterator_t *) io_iterator; + cc_credentials_iterator_t iterator = (cc_credentials_iterator_t) *io_iterator; if (!in_context ) { err = cci_check_error (ccErrBadParam); } if (!io_iterator) { err = cci_check_error (ccErrBadParam); } if (!err) { - err = ccapi_credentials_iterator_release (*iterator); + err = ccapi_credentials_iterator_release (iterator); } if (!err) { |