Commit 06923f61 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

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

parent 656d7f58
......@@ -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;
}
......
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