]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix another md5 ctx free location
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 22 Mar 2022 01:47:55 +0000 (21:47 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 22 Mar 2022 01:47:55 +0000 (21:47 -0400)
src/protocols/radius/decode.c

index 9c1776d936b871d8f70bb1a2fcc072f595a6710a..04cd19533b95d0fd89a96fb6667850e8a96b23bc 100644 (file)
@@ -142,8 +142,8 @@ ssize_t fr_radius_decode_tunnel_password(uint8_t *passwd, size_t *pwlen,
                        if (embedded_len > encrypted_len) {
                                fr_strerror_printf("Tunnel Password is too long for the attribute "
                                                   "(shared secret is probably incorrect!)");
-                               fr_md5_ctx_free(&md5_ctx);
-                               fr_md5_ctx_free(&md5_ctx_old);
+                               fr_md5_ctx_free_from_list(&md5_ctx);
+                               fr_md5_ctx_free_from_list(&md5_ctx_old);
                                return -1;
                        }