From 0be26c5280b574a4c466ceba32f5d531b2fdee39 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 7 Feb 2000 11:23:16 +0000 Subject: [PATCH] * kdc_preauth.c (return_sam_data): Just return 0 if no input preauth data is available git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12015 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/ChangeLog | 3 ++- src/kdc/kdc_preauth.c | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index ed501615b..7f86a6696 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -3,7 +3,8 @@ * kdc_preauth.c (get_preauth_hint_list): Log a message if preauth is required but no preauth types are available. (return_sam_data): Fix typo in figuring length of data to XOR when - merging keys. + merging keys. Just return 0 if no input preauth data is + available. 2000-02-06 Ken Raeburn diff --git a/src/kdc/kdc_preauth.c b/src/kdc/kdc_preauth.c index 27b4f846b..db358d283 100644 --- a/src/kdc/kdc_preauth.c +++ b/src/kdc/kdc_preauth.c @@ -696,6 +696,9 @@ return_sam_data(context, in_padata, client, request, reply, client_key, krb5_sam_response *sr = 0; krb5_predicted_sam_response *psr = 0; + if (in_padata == 0) + return 0; + /* * We start by doing the same thing verify_sam_response() does: * extract the psr from the padata (which is an sr). Nothing -- 2.26.2