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

jra at samba.org jra at samba.org
Tue Nov 30 22:57:42 GMT 2004


Author: jra
Date: 2004-11-30 22:57:41 +0000 (Tue, 30 Nov 2004)
New Revision: 4023

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

Log:
Code tidyup to fix bug #2098.
Jeremy.

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


Changeset:
Modified: branches/SAMBA_3_0/source/libads/ads_status.c
===================================================================
--- branches/SAMBA_3_0/source/libads/ads_status.c	2004-11-30 22:55:36 UTC (rev 4022)
+++ branches/SAMBA_3_0/source/libads/ads_status.c	2004-11-30 22:57:41 UTC (rev 4023)
@@ -96,11 +96,9 @@
 */
 const char *ads_errstr(ADS_STATUS status)
 {
-	uint32 msg_ctx;
 	static char *ret;
 
 	SAFE_FREE(ret);
-	msg_ctx = 0;
 
 	switch (status.error_type) {
 	case ENUM_ADS_ERROR_SYSTEM:
@@ -116,7 +114,10 @@
 #ifdef HAVE_GSSAPI
 	case ENUM_ADS_ERROR_GSS:
 	{
+		uint32 msg_ctx;
 		uint32 minor;
+
+		msg_ctx = 0;
 		
 		gss_buffer_desc msg1, msg2;
 		msg1.value = NULL;



More information about the samba-cvs mailing list