From 5bd9c5a13ee8d93bebd3ca2e2410583a0665ef05 Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Thu, 13 Mar 2008 17:51:09 +0000 Subject: [PATCH] Invalid assignment while trying to set input to NULL cc_seq_fetch_NCs_end and cc_seq_fetch_creds_end should try to set their iterator inputs to NULL. Fixed code to assign the inputs to NULL rather than the temporary variables. (Not sure why the previous code was even compiling on the Mac.) ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20274 dc483132-0cff-0310-8789-dd5450dbe970 --- src/ccapi/lib/ccapi_v2.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ccapi/lib/ccapi_v2.c b/src/ccapi/lib/ccapi_v2.c index b19a807de..08100481b 100644 --- a/src/ccapi/lib/ccapi_v2.c +++ b/src/ccapi/lib/ccapi_v2.c @@ -723,6 +723,10 @@ cc_result cc_seq_fetch_NCs_end (apiCB *in_context, err = ccapi_ccache_iterator_release (iterator); } + if (!err) { + *io_iterator = NULL; + } + return cci_remap_error (err); } @@ -822,7 +826,7 @@ cc_result cc_seq_fetch_creds_end (apiCB *in_context, } if (!err) { - *iterator = NULL; + *io_iterator = NULL; } return cci_remap_error (err); -- 2.26.2