summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/krb/kfree.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2000-02-07 00:18:02 +0000
committerKen Raeburn <raeburn@mit.edu>2000-02-07 00:18:02 +0000
commit0d55ad7285d5d52e9c8133213a9614afe2431d65 (patch)
tree8c48421d9f34aed2ca3e24e89c43bb5d9f8c75ad /src/lib/krb5/krb/kfree.c
parent2b426291e60da4555aae4c20f697431185842095 (diff)
downloadkrb5-0d55ad7285d5d52e9c8133213a9614afe2431d65.tar.gz
krb5-0d55ad7285d5d52e9c8133213a9614afe2431d65.tar.xz
krb5-0d55ad7285d5d52e9c8133213a9614afe2431d65.zip
Frank Cusack changes, set 1, diffs 1-3 of 4
Rename "sam_passcode" field to "sam_sad". Add data to predicted-sam-response structure, in part to (prepare to) help with replay detection. Fix some memory allocation problems. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12005 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/krb/kfree.c')
-rw-r--r--src/lib/krb5/krb/kfree.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/krb5/krb/kfree.c b/src/lib/krb5/krb/kfree.c
index f3745dca9b..24d8aaff90 100644
--- a/src/lib/krb5/krb/kfree.c
+++ b/src/lib/krb5/krb/kfree.c
@@ -654,8 +654,12 @@ krb5_free_predicted_sam_response_contents(krb5_context ctx,
{
if (!psr)
return;
- if (psr->sam_key.contents);
+ if (psr->sam_key.contents)
krb5_free_keyblock_contents(ctx, &psr->sam_key);
+ if (psr->client)
+ krb5_free_principal(ctx, psr->client);
+ if (psr->msd.data)
+ krb5_free_data_contents(ctx, &psr->msd);
}
KRB5_DLLIMP void KRB5_CALLCONV
@@ -674,8 +678,8 @@ krb5_free_enc_sam_response_enc_contents(krb5_context ctx,
{
if (!esre)
return;
- if (esre->sam_passcode.data)
- krb5_free_data_contents(ctx, &esre->sam_passcode);
+ if (esre->sam_sad.data)
+ krb5_free_data_contents(ctx, &esre->sam_sad);
}
KRB5_DLLIMP void KRB5_CALLCONV