summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-28 10:52:37 +0100
committerGünther Deschner <gd@samba.org>2008-02-28 11:38:00 +0100
commitc3ef76593b106e2c35c9c422cd9a216f0039ebf2 (patch)
tree7864e5178ff86dd334c52a0e80b8f374f6f66706 /source3/utils
parentac9b5f59a55fc5cf9d3900c4dbeeb92cf07a9d6e (diff)
downloadsamba-c3ef76593b106e2c35c9c422cd9a216f0039ebf2.tar.gz
samba-c3ef76593b106e2c35c9c422cd9a216f0039ebf2.tar.bz2
samba-c3ef76593b106e2c35c9c422cd9a216f0039ebf2.zip
Some cosmetics for net_derive_salting_principal().
Guenther (This used to be commit 6f8e83b43085c038bb8fb2500319fed1daf6e4e4)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_ads.c4
1 files changed, 1 insertions, 3 deletions
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 );
}