1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 20:06:18 +00:00

wbemprox: Avoid an invalid write when there are no forwards in the route table (Valgrind).

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2017-10-05 11:04:37 +02:00 committed by Alexandre Julliard
parent accdabadba
commit 94892721ec

View File

@ -2070,7 +2070,7 @@ static enum fill_status fill_ip4routetable( struct table *table, const struct ex
heap_free( forwards );
return FILL_STATUS_FAILED;
}
if (!resize_table( table, forwards->dwNumEntries, sizeof(*rec) ))
if (!resize_table( table, max(forwards->dwNumEntries, 1), sizeof(*rec) ))
{
heap_free( forwards );
return FILL_STATUS_FAILED;