1
0
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:
Kalle Olavi Niemitalo 2008-05-25 22:40:27 +03:00 committed by Kalle Olavi Niemitalo
parent 7a72a685e5
commit 6e616e4f93

View File

@ -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);