[29121] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

krb5 commit: Fix memory leak in test kdcpreauth module

daemon@ATHENA.MIT.EDU (Greg Hudson)
Mon Oct 26 18:19:22 2015

Date: Mon, 26 Oct 2015 18:19:18 -0400
From: Greg Hudson <ghudson@mit.edu>
Message-Id: <201510262219.t9QMJIqU021108@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

https://github.com/krb5/krb5/commit/8a3fdba731cb815011bff83ded2ac9f543a1768a
commit 8a3fdba731cb815011bff83ded2ac9f543a1768a
Author: Greg Hudson <ghudson@mit.edu>
Date:   Wed Oct 21 13:23:37 2015 -0400

    Fix memory leak in test kdcpreauth module
    
    In test_verify(), in the second round trip case, free the string
    attribute before returning.

 src/plugins/preauth/test/kdctest.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/plugins/preauth/test/kdctest.c b/src/plugins/preauth/test/kdctest.c
index 82a03b0..026dc68 100644
--- a/src/plugins/preauth/test/kdctest.c
+++ b/src/plugins/preauth/test/kdctest.c
@@ -142,6 +142,7 @@ test_verify(krb5_context context, krb5_data *req_pkt, krb5_kdc_req *request,
         }
         free(str);
         enc_tkt_reply->flags |= TKT_FLG_PRE_AUTH;
+        cb->free_string(context, rock, attr);
         (*respond)(arg, 0, NULL, NULL, NULL);
     } else {
         d = string2data("more");
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post