(fcc_get_principal): be more truthful on errors
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8189 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -346,10 +346,10 @@ fcc_get_principal(krb5_context context,
|
|||||||
ret = init_fcc (context, f, &sp, &fd);
|
ret = init_fcc (context, f, &sp, &fd);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
krb5_ret_principal(sp, principal);
|
ret = krb5_ret_principal(sp, principal);
|
||||||
krb5_storage_free(sp);
|
krb5_storage_free(sp);
|
||||||
close(fd);
|
close(fd);
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static krb5_error_code
|
static krb5_error_code
|
||||||
|
Reference in New Issue
Block a user