From: John Kohl Date: Wed, 5 Sep 1990 11:03:50 +0000 (+0000) Subject: allow a null replay cache to mean don't do replay detection X-Git-Tag: krb5-1.0-alpha2~333 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=faf2d923caa54861c32c9aff7966c5134fc79442;p=krb5.git 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 --- 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;