mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-23 11:54:39 +00:00
Fix stupid error in allocating 0x20-flip bitmaps.
This commit is contained in:
1 file changed
+3
-2
+3
-2
@@ -293,8 +293,9 @@ static void forward_query(int udpfd, union mysockaddr *udpaddr,
|
||||
|
||||
if (gobig && !bitvector)
|
||||
{
|
||||
casediff = (i/BITS_IN_INT) + 1; /* length of array */
|
||||
if ((bitvector = whine_malloc(casediff)))
|
||||
casediff = ((i - 1)/BITS_IN_INT) + 1; /* length of array */
|
||||
/* whine_malloc() zeros memory */
|
||||
if ((bitvector = whine_malloc(casediff * sizeof(unsigned int))))
|
||||
goto big_redo;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user