]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture: Replace calls to deprecated function
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 10 May 2023 01:06:18 +0000 (13:06 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 17 May 2023 00:24:38 +0000 (00:24 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed May 17 00:24:38 UTC 2023 on atb-devel-224

source4/torture/krb5/kdc-canon-heimdal.c
source4/torture/krb5/kdc-heimdal.c

index 8886a2f3bae29ae62840d16c1d3ce511458a2124..2fdcb4cf85e04bee36936878f80831c878bbfbe0 100644 (file)
@@ -574,7 +574,7 @@ static bool torture_krb5_as_req_canon(struct torture_context *tctx, const void *
        assertion_message = talloc_asprintf(tctx,
                                            "krb5_get_init_creds_password returned a different principal %s to what was expected %s",
                                            got_principal_string, expected_principal_string);
-       krb5_free_unparsed_name(k5_context, got_principal_string);
+       krb5_xfree(got_principal_string);
 
        torture_assert(tctx, krb5_principal_compare(k5_context,
                                                    my_creds.client, expected_principal),
index 2ee751b2619f4a8ecd5f364e5f562d9b79deb9b4..8cace9e6c36057e8c964359b0852c5b006c671e9 100644 (file)
@@ -863,7 +863,7 @@ static bool torture_krb5_as_req_creds(struct torture_context *tctx,
                assertion_message = talloc_asprintf(tctx,
                                                    "krb5_get_init_creds_password returned a different principal %s to what was expected %s",
                                                    got_principal_string, expected_principal_string);
-               krb5_free_unparsed_name(k5_context, got_principal_string);
+               krb5_xfree(got_principal_string);
 
                torture_assert(tctx, krb5_principal_compare(k5_context,
                                                            my_creds.client,
@@ -923,7 +923,7 @@ static bool torture_krb5_as_req_creds(struct torture_context *tctx,
                assertion_message = talloc_asprintf(tctx,
                                                    "krb5_get_init_creds_password returned a different principal %s to what was expected %s",
                                                    got_principal_string, expected_principal_string);
-               krb5_free_unparsed_name(k5_context, got_principal_string);
+               krb5_xfree(got_principal_string);
 
                torture_assert(tctx, krb5_principal_compare(k5_context,
                                                            my_creds.client,