]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
gensec: Fix a copy&paste error
authorVolker Lendecke <vl@samba.org>
Mon, 6 Jul 2026 10:58:46 +0000 (12:58 +0200)
committerAnoop C S <anoopcs@samba.org>
Mon, 3 Aug 2026 09:05:30 +0000 (09:05 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
auth/gensec/gensec_util.c

index 746f9f696859194b509c3507c1d9363137c57325..cc7747c87f1405537658129c7546adf9d55a6684 100644 (file)
@@ -352,7 +352,7 @@ char *gensec_get_unparsed_target_principal(struct gensec_security *gensec_securi
        } else if (service != NULL && hostname != NULL) {
                return talloc_asprintf(mem_ctx, "%s/%s", service, hostname);
        } else if (hostname != NULL) {
-               return talloc_strdup(mem_ctx, target_principal);
+               return talloc_strdup(mem_ctx, hostname);
        }
 
        return NULL;