Don't call cc_get_principal.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3399 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -51,7 +51,7 @@ krb5_verify_user(krb5_context context,
|
|||||||
|
|
||||||
krb5_error_code ret;
|
krb5_error_code ret;
|
||||||
krb5_creds cred;
|
krb5_creds cred;
|
||||||
krb5_principal client, server;
|
krb5_principal server;
|
||||||
krb5_get_init_creds_opt opt;
|
krb5_get_init_creds_opt opt;
|
||||||
krb5_verify_init_creds_opt vopt;
|
krb5_verify_init_creds_opt vopt;
|
||||||
krb5_ccache id;
|
krb5_ccache id;
|
||||||
@@ -90,13 +90,9 @@ krb5_verify_user(krb5_context context,
|
|||||||
else
|
else
|
||||||
id = ccache;
|
id = ccache;
|
||||||
if(ret == 0){
|
if(ret == 0){
|
||||||
ret = krb5_cc_get_principal(context, id, &client);
|
ret = krb5_cc_initialize(context, id, client);
|
||||||
if(ret == 0){
|
if(ret == 0){
|
||||||
ret = krb5_cc_initialize(context, id, client);
|
ret = krb5_cc_store_cred(context, id, &cred);
|
||||||
if(ret == 0){
|
|
||||||
ret = krb5_cc_store_cred(context, id, &cred);
|
|
||||||
}
|
|
||||||
krb5_free_principal(context, client);
|
|
||||||
}
|
}
|
||||||
if(ccache == NULL)
|
if(ccache == NULL)
|
||||||
krb5_cc_close(context, id);
|
krb5_cc_close(context, id);
|
||||||
|
Reference in New Issue
Block a user