]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: Remove unused memory context from samba_kdc_lookup_realm()
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 27 Sep 2023 02:58:55 +0000 (15:58 +1300)
committerJoseph Sutton <jsutton@samba.org>
Sun, 1 Oct 2023 22:45:38 +0000 (22:45 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/kdc/db-glue.c

index 0e984e4bddc337f7a5b3fe2ffac928632db8eddf..c47aa69b0356d7dc507ec64f872e831702807fc1 100644 (file)
@@ -2760,7 +2760,6 @@ static krb5_error_code samba_kdc_fetch_server(krb5_context context,
 
 static krb5_error_code samba_kdc_lookup_realm(krb5_context context,
                                              struct samba_kdc_db_context *kdc_db_ctx,
-                                             TALLOC_CTX *mem_ctx,
                                              krb5_const_principal principal,
                                              unsigned flags,
                                              struct sdb_entry *entry)
@@ -2970,7 +2969,7 @@ krb5_error_code samba_kdc_fetch(krb5_context context,
                return ret;
        }
 
-       ret = samba_kdc_lookup_realm(context, kdc_db_ctx, mem_ctx,
+       ret = samba_kdc_lookup_realm(context, kdc_db_ctx,
                                     principal, flags, entry);
        if (ret != 0) {
                goto done;