summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1990-09-05 11:03:50 +0000
committerJohn Kohl <jtkohl@mit.edu>1990-09-05 11:03:50 +0000
commitfaf2d923caa54861c32c9aff7966c5134fc79442 (patch)
treee6a4ad0f62e1fe44ff9e012d7074f8a83eaf6712 /src/lib
parenta0d2f0185b8f9a1ed66bd9ac34dc342297477f76 (diff)
downloadkrb5-faf2d923caa54861c32c9aff7966c5134fc79442.tar.gz
krb5-faf2d923caa54861c32c9aff7966c5134fc79442.tar.xz
krb5-faf2d923caa54861c32c9aff7966c5134fc79442.zip
allow a null replay cache to mean don't do replay detection
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1078 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/krb5/krb/rd_req_dec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/krb5/krb/rd_req_dec.c b/src/lib/krb5/krb/rd_req_dec.c
index c03df28ea..9d27ea73a 100644
--- a/src/lib/krb5/krb/rd_req_dec.c
+++ b/src/lib/krb5/krb/rd_req_dec.c
@@ -144,7 +144,9 @@ krb5_tkt_authent *tktauthent;
tktauthent->ticket = req->ticket; /* only temporarily...allocated
below */
- if ((retval = krb5_rc_store(rcache, tktauthent))) {
+ /* only check rcache if sender has provided one---some services
+ may not be able to use replay caches (such as datagram servers) */
+ if (rcache && (retval = krb5_rc_store(rcache, tktauthent))) {
tktauthent->ticket = 0;
clean_authenticator();
return retval;