[PATCH 2/3] dlls/nsiproxy.sys: enhance error handling

Huw Davies huw at codeweavers.com
Fri Mar 11 02:19:53 CST 2022


On Tue, Mar 08, 2022 at 05:43:50PM +0100, Eric Pouech wrote:
> Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
> 
> ---
>  dlls/nsiproxy.sys/icmp_echo.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/dlls/nsiproxy.sys/icmp_echo.c b/dlls/nsiproxy.sys/icmp_echo.c
> index f36ff156bef..5f2b776745a 100644
> --- a/dlls/nsiproxy.sys/icmp_echo.c
> +++ b/dlls/nsiproxy.sys/icmp_echo.c
> @@ -709,6 +709,7 @@ static NTSTATUS recv_msg( struct icmp_data *data, struct icmp_listen_params *par
>      TRACE( "recvmsg() rets %d errno %d addr_len %d iovlen %d msg_flags %x\n",
>             recvd, errno, msg.msg_namelen, (int)iov[0].iov_len, msg.msg_flags );
>  
> +    if (recvd < 0) goto skip;
>      if (!data->ops->parse_ip_hdr( &msg, recvd, &ip_hdr_len, &ctx )) goto skip;
>      if (recvd < ip_hdr_len + sizeof(*icmp_hdr)) goto skip;

I've sent in version 2 with a better commit msg.

Thanks,
Huw.




More information about the wine-devel mailing list