svn commit: samba r17996 - in branches/SAMBA_3_0/source/libads: .

jra at samba.org jra at samba.org
Sat Sep 2 01:34:38 GMT 2006


Author: jra
Date: 2006-09-02 01:34:37 +0000 (Sat, 02 Sep 2006)
New Revision: 17996

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

Log:
Don't talloc free the memory then reference it. Doh !
Jeremy.

Modified:
   branches/SAMBA_3_0/source/libads/kerberos.c


Changeset:
Modified: branches/SAMBA_3_0/source/libads/kerberos.c
===================================================================
--- branches/SAMBA_3_0/source/libads/kerberos.c	2006-09-02 01:33:13 UTC (rev 17995)
+++ branches/SAMBA_3_0/source/libads/kerberos.c	2006-09-02 01:34:37 UTC (rev 17996)
@@ -559,14 +559,15 @@
 		TALLOC_FREE(dname);
 		return False;
 	}
-	/* Set the environment variable to this file. */
-	setenv("KRB5_CONFIG", fname, 1);
-	TALLOC_FREE(dname);
 
 	DEBUG(5,("create_local_private_krb5_conf_for_domain: wrote "
 		"file %s with realm %s KDC = %s\n",
 		fname, realm_upper, inet_ntoa(ip) ));
 
+	/* Set the environment variable to this file. */
+	setenv("KRB5_CONFIG", fname, 1);
+	TALLOC_FREE(dname);
+
 	return True;
 }
 #endif



More information about the samba-cvs mailing list