krb5 commit: Fix make_signedpath_checksum() initialization bug

Greg Hudson ghudson at mit.edu
Mon Jun 15 17:50:03 EDT 2015


https://github.com/krb5/krb5/commit/73efbee640e18ffc53ff4e08c0ce940fb726dcd4
commit 73efbee640e18ffc53ff4e08c0ce940fb726dcd4
Author: Greg Hudson <ghudson at mit.edu>
Date:   Mon Jun 15 17:34:23 2015 -0400

    Fix make_signedpath_checksum() initialization bug
    
    data needs to be initialized since it is freed in the cleanup handler.
    The bug was introduced by 0c6498b2b9f4f4ad8b9f224714c84714425f2ca3 and
    is not part of any release.
    
    ticket: 8139

 src/kdc/kdc_authdata.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/kdc/kdc_authdata.c b/src/kdc/kdc_authdata.c
index 204cd09..193b8c1 100644
--- a/src/kdc/kdc_authdata.c
+++ b/src/kdc/kdc_authdata.c
@@ -555,7 +555,7 @@ make_signedpath_checksum(krb5_context context,
                          krb5_enctype *enctype_out)
 {
     krb5_error_code ret;
-    krb5_data *data;
+    krb5_data *data = NULL;
     krb5_const_principal client;
     krb5_key_data *kd;
     krb5_keyblock tgtkey;


More information about the cvs-krb5 mailing list