krb5 commit: Fix trivial leak in OTP kdcpreauth module

Greg Hudson <[email protected]>
Newsgroups gmane.comp.encryption.kerberos.cvs
Message-ID <[email protected]>
https://github.com/krb5/krb5/commit/e89abc2d4ea1fea1ec28d470f297514b828e4842
commit e89abc2d4ea1fea1ec28d470f297514b828e4842
Author: Pavel Březina <[email protected]>
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.
    
    [[email protected]: 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);
 }

_______________________________________________
cvs-krb5 mailing list
[email protected]
https://mailman.mit.edu/mailman/listinfo/cvs-krb5
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.