svn commit: samba r9774 - in branches/SAMBA_4_0: . source/lib/tdb/common

tridge at samba.org tridge at samba.org
Tue Aug 30 01:58:04 GMT 2005


Author: tridge
Date: 2005-08-30 01:58:03 +0000 (Tue, 30 Aug 2005)
New Revision: 9774

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

Log:
 r11605 at blu:  tridge | 2005-08-30 12:02:19 +1000
 make sure we don't walk off the end of the hash array

Modified:
   branches/SAMBA_4_0/
   branches/SAMBA_4_0/source/lib/tdb/common/tdb.c


Changeset:

Property changes on: branches/SAMBA_4_0
___________________________________________________________________
Name: svk:merge
   - a953eb74-4aff-0310-a63c-855d20285ebb:/local/samba4:11599
   + a953eb74-4aff-0310-a63c-855d20285ebb:/local/samba4:11605

Modified: branches/SAMBA_4_0/source/lib/tdb/common/tdb.c
===================================================================
--- branches/SAMBA_4_0/source/lib/tdb/common/tdb.c	2005-08-30 01:51:36 UTC (rev 9773)
+++ branches/SAMBA_4_0/source/lib/tdb/common/tdb.c	2005-08-30 01:58:03 UTC (rev 9774)
@@ -1287,6 +1287,9 @@
 						break;
 					}
 				}
+				if (tlock->hash == tdb->header.hash_size) {
+					continue;
+				}
 			} else {
 				if (ofs_read(tdb, TDB_HASH_TOP(tlock->hash), &off) == 0 &&
 				    off == 0) {



More information about the samba-cvs mailing list