projects
/
mod_auth_kerb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use krb5_rc_resolve_full() to detect the "none" rcache type. The previous code was...
[mod_auth_kerb.git]
/
src
/
mod_auth_kerb.c
diff --git
a/src/mod_auth_kerb.c
b/src/mod_auth_kerb.c
index
71ce099
..
880b6ea
100644
(file)
--- a/
src/mod_auth_kerb.c
+++ b/
src/mod_auth_kerb.c
@@
-1554,18
+1554,18
@@
have_rcache_type(const char *type)
{
krb5_error_code ret;
krb5_context context;
{
krb5_error_code ret;
krb5_context context;
- krb5_rcache id;
+ krb5_rcache id
= NULL
;
int found;
int found;
- memset(&id, 0, sizeof(id));
-
ret = krb5_init_context(&context);
if (ret)
return 0;
ret = krb5_init_context(&context);
if (ret)
return 0;
- ret = krb5_rc_resolve_
type(context, &id, type
);
+ ret = krb5_rc_resolve_
full(context, &id, "none:"
);
found = (ret == 0);
found = (ret == 0);
+ if (ret == 0)
+ krb5_rc_destroy(context, id);
krb5_free_context(context);
return found;
krb5_free_context(context);
return found;