svn commit: samba r16955 - branches/SAMBA_3_0/source/libads trunk/source/libads

vlendec at samba.org vlendec at samba.org
Tue Jul 11 20:50:50 GMT 2006


Author: vlendec
Date: 2006-07-11 20:50:50 +0000 (Tue, 11 Jul 2006)
New Revision: 16955

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16955

Log:
Fix an uninitialized var -- Jerry, please check.
Modified:
   branches/SAMBA_3_0/source/libads/kerberos.c
   trunk/source/libads/kerberos.c


Changeset:
Modified: branches/SAMBA_3_0/source/libads/kerberos.c
===================================================================
--- branches/SAMBA_3_0/source/libads/kerberos.c	2006-07-11 20:31:13 UTC (rev 16954)
+++ branches/SAMBA_3_0/source/libads/kerberos.c	2006-07-11 20:50:50 UTC (rev 16955)
@@ -334,13 +334,13 @@
 		return False;
 	}
 
+	salt = (char*)secrets_fetch( key, NULL );
+
 	if ( !salt ) {
 		DEBUG(8,("kerberos_secrets_fetch_des_salt: NULL salt!\n"));
 		secrets_delete( key );
 	}
 
-	salt = (char*)secrets_fetch( key, NULL );
-
 	SAFE_FREE( key );
 
 	return salt;

Modified: trunk/source/libads/kerberos.c
===================================================================
--- trunk/source/libads/kerberos.c	2006-07-11 20:31:13 UTC (rev 16954)
+++ trunk/source/libads/kerberos.c	2006-07-11 20:50:50 UTC (rev 16955)
@@ -334,13 +334,13 @@
 		return False;
 	}
 
+	salt = (char*)secrets_fetch( key, NULL );
+
 	if ( !salt ) {
 		DEBUG(8,("kerberos_secrets_fetch_des_salt: NULL salt!\n"));
 		secrets_delete( key );
 	}
 
-	salt = (char*)secrets_fetch( key, NULL );
-
 	SAFE_FREE( key );
 
 	return salt;



More information about the samba-cvs mailing list