From: Alexandra Ellwood Date: Thu, 13 Mar 2008 17:51:09 +0000 (+0000) Subject: Invalid assignment while trying to set input to NULL X-Git-Tag: krb5-1.7-alpha1~712 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bd9c5a13ee8d93bebd3ca2e2410583a0665ef05;p=thirdparty%2Fkrb5.git 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 --- diff --git a/src/ccapi/lib/ccapi_v2.c b/src/ccapi/lib/ccapi_v2.c index b19a807dec..08100481b3 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);