From: Alexandra Ellwood Date: Mon, 10 Mar 2008 19:24:18 +0000 (+0000) Subject: Fix pointer cast in cc_seq_fetch_NCs_end X-Git-Tag: krb5-1.7-alpha1~724 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=72d47a63bbfcdcb8c6fc642d2a511f4619066e3c;p=krb5.git 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 --- diff --git a/src/ccapi/lib/ccapi_v2.c b/src/ccapi/lib/ccapi_v2.c index 8a25ae6e9..3050fd1e6 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) {