Commit 94892721 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

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

parent accdabad
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment