nsiproxy: Fix use after free in icmp_send_echo (scan-build).

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2021-12-20 22:01:21 -07:00 committed by Alexandre Julliard
parent 656d7f58a1
commit 06923f61e2
1 changed files with 1 additions and 1 deletions

View File

@ -656,8 +656,8 @@ NTSTATUS icmp_send_echo( void *args )
if (ret < 0)
{
TRACE( "sendto() rets %d errno %d\n", ret, errno );
icmp_data_free( data );
params->reply_len = data->ops->set_reply_ip_status( errno_to_ip_status( errno ), params->bits, params->reply );
icmp_data_free( data );
return STATUS_SUCCESS;
}