]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Some cosmetics for net_derive_salting_principal().
authorGünther Deschner <gd@samba.org>
Thu, 28 Feb 2008 09:52:37 +0000 (10:52 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 28 Feb 2008 10:38:00 +0000 (11:38 +0100)
Guenther

source/utils/net_ads.c

index fb644ba55e20c9847c00cfffae39858ff469bbe3..199804f3aaaa4d128f85a41d13d9b25c5502f402 100644 (file)
@@ -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 );
                }