mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-12-05 22:18:35 +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)
|
if (gobig && !bitvector)
|
||||||
{
|
{
|
||||||
casediff = (i/BITS_IN_INT) + 1; /* length of array */
|
casediff = ((i - 1)/BITS_IN_INT) + 1; /* length of array */
|
||||||
if ((bitvector = whine_malloc(casediff)))
|
/* whine_malloc() zeros memory */
|
||||||
|
if ((bitvector = whine_malloc(casediff * sizeof(unsigned int))))
|
||||||
goto big_redo;
|
goto big_redo;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user