summaryrefslogtreecommitdiffstats
path: root/src/kdc/dispatch.c
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>1998-07-22 00:47:49 +0000
committerTom Yu <tlyu@mit.edu>1998-07-22 00:47:49 +0000
commitc414de4ca08ab5e62bd1c4d914aa22d7f5f76e50 (patch)
treef433423bf4837e85e62c82a7d0ca43f01c1dfa68 /src/kdc/dispatch.c
parent1efad3b012e9751a0af13b085e3294864f31f5aa (diff)
downloadkrb5-c414de4ca08ab5e62bd1c4d914aa22d7f5f76e50.tar.gz
krb5-c414de4ca08ab5e62bd1c4d914aa22d7f5f76e50.tar.xz
krb5-c414de4ca08ab5e62bd1c4d914aa22d7f5f76e50.zip
* replay.c (kdc_check_lookaside):
(kdc_insert_lookaside): Add code to originating address of packet, as krb4 initial ticket requests don't contain an address. This would cause a subtle problem wherein two simultaneous krb4 initial ticket requests for the same principal originating from different addresses would result in both replies containing the same address. * kdc_util.h: Modify prototype for lookaside functions. * dispatch.c (dispatch): Update to new calling conventions of the lookaside functions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10713 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kdc/dispatch.c')
-rw-r--r--src/kdc/dispatch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kdc/dispatch.c b/src/kdc/dispatch.c
index a94173ce4f..7446ea5f88 100644
--- a/src/kdc/dispatch.c
+++ b/src/kdc/dispatch.c
@@ -43,7 +43,7 @@ dispatch(pkt, from, portnum, response)
/* decode incoming packet, and dispatch */
/* try the replay lookaside buffer */
- if (kdc_check_lookaside(pkt, response)) {
+ if (kdc_check_lookaside(pkt, from, response)) {
/* a hit! */
krb5_klog_syslog(LOG_INFO, "DISPATCH: replay found and re-transmitted");
return 0;
@@ -72,7 +72,7 @@ dispatch(pkt, from, portnum, response)
retval = KRB5KRB_AP_ERR_MSG_TYPE;
/* put the response into the lookaside buffer */
if (!retval)
- kdc_insert_lookaside(pkt, *response);
+ kdc_insert_lookaside(pkt, from, *response);
return retval;
}