]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: ssl: leak crtlist_name in ssl-f-use
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 9 Oct 2025 13:12:25 +0000 (15:12 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 10 Oct 2025 09:22:37 +0000 (11:22 +0200)
This patch fixes a leak of the temporary variable "crtlist_name" which
is used in the ssl-f-use parser.

Must be backported in 3.2.

src/cfgparse-ssl.c

index 1d53da59fdcb0d62b1d08bd2f533804f7b7426ed..8dc92317278f1ed961d8fb49a7c3317856a9e425 100644 (file)
@@ -2483,7 +2483,8 @@ static int post_section_frontend_crt_init()
                }
        }
 
-       return err_code;
+       goto end;
+
 error:
 
        if (err)
@@ -2499,9 +2500,11 @@ error:
                ha_free(&n);
        }
 
-       ha_free(&crtlist_name);
        crtlist_entry_free(entry);
        crtlist_free(newlist);
+
+end:
+       ha_free(&crtlist_name);
        return err_code;
 }