[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] patch: check resp_status() return code
From: |
tho |
Subject: |
[Bug-wget] patch: check resp_status() return code |
Date: |
Thu, 10 Jun 2010 14:04:18 +0200 |
--- 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,
- [Bug-wget] patch: check resp_status() return code,
tho <=