[PATCH] http.sys: Initialize address structure before use. (Coverity)
Zebediah Figura
z.figura12 at gmail.com
Thu Sep 5 22:27:11 CDT 2019
On 9/5/19 10:17 PM, Alistair Leslie-Hughes wrote:
> CID 1453504
>
> Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
> ---
> dlls/http.sys/http.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/dlls/http.sys/http.c b/dlls/http.sys/http.c
> index b5d5a219dc..6f56cc6555 100644
> --- a/dlls/http.sys/http.c
> +++ b/dlls/http.sys/http.c
> @@ -1097,6 +1097,7 @@ static NTSTATUS http_add_url(struct request_queue *queue, IRP *irp)
> return STATUS_UNSUCCESSFUL;
> }
>
> + memset( &addr, 0, sizeof(addr) );
> addr.sin_family = AF_INET;
> addr.sin_addr.S_un.S_addr = INADDR_ANY;
> if (bind(s, (struct sockaddr *)&addr, sizeof(addr)) == -1)
>
This clears addr.sin_port, which was set on line 1064.
More information about the wine-devel
mailing list