mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
1008: Remove assertion from init_http_connection_info().
As the comment near the end of this function says, conn->info is
already non-NULL if a HTTPS proxy is being used, and the code in fact
correctly frees the previous info. So there is no need to assert its
nonexistence. I added that bug on 2008-05-22, in commit 291a913d1e
.
This commit is contained in:
parent
7a72a685e5
commit
6e616e4f93
@ -523,13 +523,6 @@ init_http_connection_info(struct connection *conn, int major, int minor, int clo
|
||||
{
|
||||
struct http_connection_info *http;
|
||||
|
||||
assert(conn->info == NULL);
|
||||
assert(conn->done == NULL);
|
||||
if_assert_failed {
|
||||
http_end_request(conn, S_INTERNAL, 0);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
http = mem_calloc(1, sizeof(*http));
|
||||
if (!http) {
|
||||
http_end_request(conn, S_OUT_OF_MEM, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user