From: Günther Deschner Date: Thu, 28 Feb 2008 09:52:37 +0000 (+0100) Subject: Some cosmetics for net_derive_salting_principal(). X-Git-Tag: samba-3.2.0pre2~37^2~81 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6f8e83b43085c038bb8fb2500319fed1daf6e4e4;p=thirdparty%2Fsamba.git Some cosmetics for net_derive_salting_principal(). Guenther --- 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 ); }