]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix make_signedpath_checksum() initialization bug
authorGreg Hudson <ghudson@mit.edu>
Mon, 15 Jun 2015 21:34:23 +0000 (17:34 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 15 Jun 2015 21:37:01 +0000 (17:37 -0400)
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

index 204cd09cf6cb908a359557b8a3bd17149df85619..193b8c13658ab462db3ad5a422367dbd9d3d70cf 100644 (file)
@@ -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;