diff options
Diffstat (limited to 'src/kdc/dispatch.c')
-rw-r--r-- | src/kdc/dispatch.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kdc/dispatch.c b/src/kdc/dispatch.c index 7446ea5f8..824a3af0d 100644 --- a/src/kdc/dispatch.c +++ b/src/kdc/dispatch.c @@ -42,12 +42,14 @@ dispatch(pkt, from, portnum, response) /* decode incoming packet, and dispatch */ +#ifndef NOCACHE /* try the replay lookaside buffer */ if (kdc_check_lookaside(pkt, from, response)) { /* a hit! */ krb5_klog_syslog(LOG_INFO, "DISPATCH: replay found and re-transmitted"); return 0; } +#endif /* try TGS_REQ first; they are more common! */ if (krb5_is_tgs_req(pkt)) { @@ -70,9 +72,11 @@ dispatch(pkt, from, portnum, response) #endif else retval = KRB5KRB_AP_ERR_MSG_TYPE; +#ifndef NOCACHE /* put the response into the lookaside buffer */ if (!retval) kdc_insert_lookaside(pkt, from, *response); +#endif return retval; } |