diff options
-rw-r--r-- | src/IO/http.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/IO/http.c b/src/IO/http.c index 41ee137a..3504d2b3 100644 --- a/src/IO/http.c +++ b/src/IO/http.c @@ -171,10 +171,12 @@ static void Http_connect_queued_sockets(HostConnection_t *hc) } else if (a_Web_valid(sd->web)) { /* start connecting the socket */ if (Http_connect_socket(sd->Info) < 0) { + int localkey = VOIDP2INT(sd->Info->LocalKey); + MSG_BW(sd->web, 1, "ERROR: %s", dStrerror(sd->Err)); a_Chain_bfcb(OpAbort, sd->Info, NULL, "Both"); dFree(sd->Info); - Http_socket_free(VOIDP2INT(sd->Info->LocalKey)); + Http_socket_free(localkey); } else { sd->connected_to = hc->host; hc->active_connections++; |