From c3ef76593b106e2c35c9c422cd9a216f0039ebf2 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 28 Feb 2008 10:52:37 +0100 Subject: Some cosmetics for net_derive_salting_principal(). Guenther (This used to be commit 6f8e83b43085c038bb8fb2500319fed1daf6e4e4) --- source3/utils/net_ads.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source3/utils') diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c index fb644ba55e..199804f3aa 100644 --- a/source3/utils/net_ads.c +++ b/source3/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 ); } -- cgit