Ignore:
Timestamp:
May 27, 2007, 12:26:26 AM (18 years ago)
Author:
Paul Smedley
Message:

Upgrade source to 3.0.25a

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samba/source/libsmb/samlogon_cache.c

    r26 r39  
    195195       
    196196        if ( data.dptr ) {
    197                
    198                 if ( (user = SMB_MALLOC_P(NET_USER_INFO_3)) == NULL )
     197
     198                user = TALLOC_ZERO_P(mem_ctx, NET_USER_INFO_3);
     199                if (user == NULL) {
    199200                        return NULL;
    200                        
     201                }
     202
    201203                prs_init( &ps, 0, mem_ctx, UNMARSHALL );
    202204                prs_give_memory( &ps, data.dptr, data.dsize, True );
     
    204206                if ( !prs_uint32( "timestamp", &ps, 0, &t ) ) {
    205207                        prs_mem_free( &ps );
    206                         SAFE_FREE(user);
     208                        TALLOC_FREE(user);
    207209                        return False;
    208210                }
    209211               
    210212                if ( !net_io_user_info3("", user, &ps, 0, 3, 0) ) {
    211                         SAFE_FREE( user );
     213                        TALLOC_FREE( user );
    212214                }
    213215                       
     
    228230                        DEBUG(10,("netsamlogon_cache_get: cache entry expired \n"));
    229231                        tdb_delete( netsamlogon_tdb, key );
    230                         SAFE_FREE( user );
     232                        TALLOC_FREE( user );
    231233                }
    232234#endif
     
    250252
    251253        talloc_destroy(mem_ctx);
    252         SAFE_FREE(user);
    253254
    254255        return result;
Note: See TracChangeset for help on using the changeset viewer.