bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] patch: check resp_status() return code


From: Giuseppe Scrivano
Subject: Re: [Bug-wget] patch: check resp_status() return code
Date: Fri, 11 Jun 2010 00:47:44 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Thanks for your patch but I can't apply it since this fix is already
present in the source repository.

Cheers,
Giuseppe



tho <address@hidden> writes:

> --- http.c.orig       2010-06-10 14:01:43.000000000 +0200
> +++ http.c    2010-06-10 14:01:55.000000000 +0200
> @@ -1829,6 +1829,13 @@
>    /* Check for status line.  */
>    message = NULL;
>    statcode = resp_status (resp, &message);
> +  if (statcode == -1)
> +    {
> +      logprintf (LOG_NOTQUIET, _("Response decoding error.\n"));
> +      CLOSE_INVALIDATE (sock);
> +      request_free (req);
> +      return HOSTERR;
> +    }
>    hs->message = xstrdup (message);
>    if (!opt.server_response)
>      logprintf (LOG_VERBOSE, "%2d %s\n", statcode,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]