krb5 commit: Fix trivial leak in OTP kdcpreauth module

Greg Hudson ghudson at mit.edu
Thu Sep 16 16:30:59 EDT 2021


https://github.com/krb5/krb5/commit/e89abc2d4ea1fea1ec28d470f297514b828e4842
commit e89abc2d4ea1fea1ec28d470f297514b828e4842
Author: Pavel Březina <pbrezina at 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 at 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);
 }


More information about the cvs-krb5 mailing list