Skip to content

Commit

Permalink
ipa-kdb: Fix double free in ipadb_reinit_mspac()
Browse files Browse the repository at this point in the history
Fixes: https://pagure.io/freeipa/issue/9535

Signed-off-by: Julien Rische <jrische@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
  • Loading branch information
jrisc authored and flo-renaud committed Feb 20, 2024
1 parent 8359293 commit dc3e902
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions daemons/ipa-kdb/ipa_kdb_mspac.c
Original file line number Diff line number Diff line change
Expand Up @@ -3087,6 +3087,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) {
Expand Down

0 comments on commit dc3e902

Please sign in to comment.