aboutsummaryrefslogtreecommitdiff
path: root/src/ccapi
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2008-03-13 17:51:09 +0000
committerAlexandra Ellwood <lxs@mit.edu>2008-03-13 17:51:09 +0000
commit5bd9c5a13ee8d93bebd3ca2e2410583a0665ef05 (patch)
tree1aaecc0d414d9dde24dfb34ce80311e55ef6c4e7 /src/ccapi
parent416478ebed8ea7116ad5acd9e88b106c201aa281 (diff)
downloadkrb5-5bd9c5a13ee8d93bebd3ca2e2410583a0665ef05.zip
krb5-5bd9c5a13ee8d93bebd3ca2e2410583a0665ef05.tar.gz
krb5-5bd9c5a13ee8d93bebd3ca2e2410583a0665ef05.tar.bz2
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
Diffstat (limited to 'src/ccapi')
-rw-r--r--src/ccapi/lib/ccapi_v2.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ccapi/lib/ccapi_v2.c b/src/ccapi/lib/ccapi_v2.c
index b19a807..0810048 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);