From 6f8e83b43085c038bb8fb2500319fed1daf6e4e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Thu, 28 Feb 2008 10:52:37 +0100 Subject: [PATCH] Some cosmetics for net_derive_salting_principal(). Guenther --- source/utils/net_ads.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/utils/net_ads.c b/source/utils/net_ads.c index fb644ba55e2..199804f3aaa 100644 --- a/source/utils/net_ads.c +++ b/source/utils/net_ads.c @@ -1277,9 +1277,7 @@ static bool net_derive_salting_principal( TALLOC_CTX *ctx, ADS_STRUCT *ads ) /* if it's a Windows functional domain, we have to look for the UPN */ if ( domain_func == DS_DOMAIN_FUNCTION_2000 ) { - char *upn; - - upn = ads_get_upn(ads, ctx, machine_name); + char *upn = ads_get_upn(ads, ctx, machine_name); if ( upn ) { fstrcpy( salt, upn ); } -- 2.47.3