Move the each of the cursors one step forward in the chain if creds matches.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23950 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
15
kcm/cursor.c
15
kcm/cursor.c
@@ -149,3 +149,18 @@ kcm_cursor_delete(krb5_context context,
|
||||
return ret;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
kcm_cursor_update(krb5_context context,
|
||||
kcm_ccache ccache,
|
||||
struct kcm_creds *creds)
|
||||
{
|
||||
kcm_cursor *p;
|
||||
|
||||
/* assert(is_locked(&ccache->mutex)) */
|
||||
|
||||
for (p = ccache->cursors; p != NULL; p = p->next)
|
||||
if (p->credp == creds)
|
||||
p->credp = creds->next;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user