From d09914d218c53b92ffcd4a276c3ce3f33ef5389f Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 7 Feb 2005 22:06:49 +0000 Subject: r5268: Fix bug #2310, only do 16-bit normalization on small dfree request. Jeremy. (This used to be commit 96dfec739a7ab6ac082d530ca2b771f9d6acabc6) --- source3/smbd/dfree.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source3') diff --git a/source3/smbd/dfree.c b/source3/smbd/dfree.c index f93cdf3791..c556c8c8ab 100644 --- a/source3/smbd/dfree.c +++ b/source3/smbd/dfree.c @@ -36,11 +36,11 @@ static void disk_norm(BOOL small_query, SMB_BIG_UINT *bsize,SMB_BIG_UINT *dfree, 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. */ -- cgit