summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
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;