projects
/
mod_auth_kerb.cvs
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c132885
)
Use krb5_rc_resolve_full() to detect the "none" rcache type. The previous code was...
author
kouril
<kouril>
Sat, 9 Sep 2006 08:01:03 +0000
(08:01 +0000)
committer
kouril
<kouril>
Sat, 9 Sep 2006 08:01:03 +0000
(08:01 +0000)
src/mod_auth_kerb.c
patch
|
blob
|
history
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_rcache id;
+ krb5_rcache id
= NULL
;
int found;
- memset(&id, 0, sizeof(id));
-
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);
+ if (ret == 0)
+ krb5_rc_destroy(context, id);
krb5_free_context(context);
return found;