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

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

krb5 commit: Fix trivial leak in OTP kdcpreauth module

daemon@ATHENA.MIT.EDU (Greg Hudson)
Thu Sep 16 16:31:20 2021

Date: Thu, 16 Sep 2021 16:30:59 -0400
From: Greg Hudson <ghudson@mit.edu>
Message-ID: <202109162030.18GKUxWi006509@drugstore.mit.edu>
To: <cvs-krb5@mit.edu>
MIME-Version: 1.0
Reply-To: krbdev@mit.edu
Content-Type: multipart/mixed; boundary="===============1882400715759998404=="
Errors-To: cvs-krb5-bounces@mit.edu

--===============1882400715759998404==
Content-Type: text/plain

https://github.com/krb5/krb5/commit/e89abc2d4ea1fea1ec28d470f297514b828e4842
commit e89abc2d4ea1fea1ec28d470f297514b828e4842
Author: Pavel Březina <pbrezina@redhat.com>
Date:   Wed Sep 15 14:03:35 2021 +0200

    Fix trivial leak in OTP kdcpreauth module
    
    The radius client object is stored in the otp state and should be
    freed on exit.
    
    [ghudson@mit.edu: edited commit message]

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

diff --git a/src/plugins/preauth/otp/otp_state.c b/src/plugins/preauth/otp/otp_state.c
index acdbca9..20cd18a 100644
--- a/src/plugins/preauth/otp/otp_state.c
+++ b/src/plugins/preauth/otp/otp_state.c
@@ -618,6 +618,7 @@ otp_state_free(otp_state *self)
         return;
 
     krad_attrset_free(self->attrs);
+    krad_client_free(self->radius);
     token_types_free(self->types);
     free(self);
 }

--===============1882400715759998404==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

--===============1882400715759998404==--

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