nsiproxy.sys: Return success and zero count from ipv6_forward_enumerate_all() if IPV6 is unsupported.

This commit is contained in:
Paul Gofman 2024-05-15 12:00:04 -06:00 committed by Alexandre Julliard
parent 921e79c2b5
commit d6c41f95c0

View file

@ -1578,7 +1578,11 @@ static NTSTATUS ipv6_forward_enumerate_all( void *key_data, UINT key_size, void
UINT rtf_flags; UINT rtf_flags;
FILE *fp; FILE *fp;
if (!(fp = fopen( "/proc/net/ipv6_route", "r" ))) return STATUS_NOT_SUPPORTED; if (!(fp = fopen( "/proc/net/ipv6_route", "r" )))
{
*count = 0;
return STATUS_SUCCESS;
}
while ((ptr = fgets( buf, sizeof(buf), fp ))) while ((ptr = fgets( buf, sizeof(buf), fp )))
{ {