svn commit: samba r5268 - in branches/SAMBA_3_0/source/smbd: .

jra at samba.org jra at samba.org
Mon Feb 7 22:06:51 GMT 2005


Author: jra
Date: 2005-02-07 22:06:49 +0000 (Mon, 07 Feb 2005)
New Revision: 5268

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

Log:
Fix bug #2310, only do 16-bit normalization on small dfree
request.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/smbd/dfree.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/dfree.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/dfree.c	2005-02-07 22:06:15 UTC (rev 5267)
+++ branches/SAMBA_3_0/source/smbd/dfree.c	2005-02-07 22:06:49 UTC (rev 5268)
@@ -36,11 +36,11 @@
 		   errors */
 	}  
 
-	while (*dfree > WORDMAX || *dsize > WORDMAX || *bsize < 512) {
-		*dfree /= 2;
-		*dsize /= 2;
-		*bsize *= 2;
-		if(small_query) {	
+	if(small_query) {	
+		while (*dfree > WORDMAX || *dsize > WORDMAX || *bsize < 512) {
+			*dfree /= 2;
+			*dsize /= 2;
+			*bsize *= 2;
 			/*
 			 * Force max to fit in 16 bit fields.
 			 */



More information about the samba-cvs mailing list