allow a null replay cache to mean don't do replay detection
authorJohn Kohl <jtkohl@mit.edu>
Wed, 5 Sep 1990 11:03:50 +0000 (11:03 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Wed, 5 Sep 1990 11:03:50 +0000 (11:03 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1078 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/rd_req_dec.c

index c03df28ea62b116e78a2764cd895d0a6206cb085..9d27ea73a494f3b91406faebe50086a4b721bd9d 100644 (file)
@@ -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;