]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r15227: Fix a valgrind error. We are marshalling here, not unmarshalling.
authorVolker Lendecke <vlendec@samba.org>
Tue, 25 Apr 2006 08:03:34 +0000 (08:03 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:16:29 +0000 (11:16 -0500)
Jeremy, can you check this? This was part of your -O6 on 64bit sweep.

Volker
(This used to be commit 4fa5dbcc8dd1f150664e1241b22e3f048d816001)

source3/libsmb/samlogon_cache.c

index cc1c6bd6b24fe0bdd4c65570b48276230b08d3b0..7a6d9a96ad00e13c1544f4fb2f6cb7e975f2e928 100644 (file)
@@ -151,10 +151,9 @@ BOOL netsamlogon_cache_store( const char *username, NET_USER_INFO_3 *user )
        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) )