1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r16542: Fix #3863, reported by jason@ncac.gwu.edu

Jeremy.
(This used to be commit cde8323fdc)
This commit is contained in:
Jeremy Allison 2006-06-27 00:42:24 +00:00 committed by Gerald (Jerry) Carter
parent fe28eb2e41
commit 429cd6db0b
2 changed files with 6 additions and 2 deletions

View File

@ -201,6 +201,12 @@ BOOL make_way_for_eventlogs( TDB_CONTEXT * the_tdb, int32 needed,
len = tdb_unpack( ret.dptr, ret.dsize, "ddddd", &reclen,
&tresv1, &trecnum, &timegen, &timewr );
if (len == -1) {
DEBUG( 10,("make_way_for_eventlogs: tdb_unpack failed.\n"));
tdb_unlock_bystring( the_tdb, EVT_NEXT_RECORD );
return False;
}
DEBUG( 8,
( "read record %d, record size is [%d], total so far [%d]\n",
i, reclen, nbytes ) );

View File

@ -289,12 +289,10 @@ Eventlog_entry *get_eventlog_record( prs_struct * ps, TDB_CONTEXT * tdb,
int srecno;
int reclen;
int len;
uint8 *rbuff;
pstring *wpsource, *wpcomputer, *wpsid, *wpstrs, *puserdata;
key.dsize = sizeof( int32 );
rbuff = NULL;
srecno = recno;
key.dptr = ( char * ) &srecno;