svn commit: samba r15227 - branches/SAMBA_3_0/source/libsmb trunk/source/libsmb

vlendec at samba.org vlendec at samba.org
Tue Apr 25 08:03:34 GMT 2006


Author: vlendec
Date: 2006-04-25 08:03:34 +0000 (Tue, 25 Apr 2006)
New Revision: 15227

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

Log:
Fix a valgrind error. We are marshalling here, not unmarshalling.

Jeremy, can you check this? This was part of your -O6 on 64bit sweep.

Volker

Modified:
   branches/SAMBA_3_0/source/libsmb/samlogon_cache.c
   trunk/source/libsmb/samlogon_cache.c


Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/samlogon_cache.c
===================================================================
--- branches/SAMBA_3_0/source/libsmb/samlogon_cache.c	2006-04-25 07:56:31 UTC (rev 15226)
+++ branches/SAMBA_3_0/source/libsmb/samlogon_cache.c	2006-04-25 08:03:34 UTC (rev 15227)
@@ -151,10 +151,9 @@
 	prs_init( &ps, RPC_MAX_PDU_FRAG_LEN, mem_ctx, MARSHALL);
 	
 	{
-		uint32 ts;
+		uint32 ts = (uint32)t;
 		if ( !prs_uint32( "timestamp", &ps, 0, &ts ) )
 			return False;
-		t = (time_t)ts;
 	}
 	
 	if ( net_io_user_info3("", user, &ps, 0, 3, 0) ) 

Modified: trunk/source/libsmb/samlogon_cache.c
===================================================================
--- trunk/source/libsmb/samlogon_cache.c	2006-04-25 07:56:31 UTC (rev 15226)
+++ trunk/source/libsmb/samlogon_cache.c	2006-04-25 08:03:34 UTC (rev 15227)
@@ -151,10 +151,9 @@
 	prs_init( &ps, RPC_MAX_PDU_FRAG_LEN, mem_ctx, MARSHALL);
 	
 	{
-		uint32 ts;
+		uint32 ts = (uint32)t;
 		if ( !prs_uint32( "timestamp", &ps, 0, &ts ) )
 			return False;
-		t = (time_t)ts;
 	}
 	
 	if ( net_io_user_info3("", user, &ps, 0, 3, 0) ) 



More information about the samba-cvs mailing list