From a8e433f7c8d844d9f337a34db09b0197f2dbc5af Mon Sep 17 00:00:00 2001 From: Julien Rische Date: Tue, 20 Feb 2024 15:14:24 +0100 Subject: [PATCH] ipa-kdb: Fix double free in ipadb_reinit_mspac() Fixes: https://pagure.io/freeipa/issue/9535 Signed-off-by: Julien Rische Reviewed-By: Florence Blanc-Renaud (cherry picked from commit dd27d225524aa81c038a970961a4f878cf742e2a) --- daemons/ipa-kdb/ipa_kdb_mspac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/daemons/ipa-kdb/ipa_kdb_mspac.c b/daemons/ipa-kdb/ipa_kdb_mspac.c index deed513b9..0964d112a 100644 --- a/daemons/ipa-kdb/ipa_kdb_mspac.c +++ b/daemons/ipa-kdb/ipa_kdb_mspac.c @@ -3084,6 +3084,7 @@ ipadb_reinit_mspac(struct ipadb_context *ipactx, bool force_reinit, } free(resstr); + resstr = NULL; flat_server_name = get_server_netbios_name(ipactx); if (!flat_server_name) { -- 2.43.0