diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2011-10-01 11:09:01 -0300 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2011-10-01 11:09:01 -0300 |
commit | 4b6ba9692612a992991d0c72bf8e1fa67655a9db (patch) | |
tree | da8f067ffa487a35be51c834a0b3c3fe0a5f4933 /src/IO/http.c | |
parent | 8dac04451d23627af7be3b50ca13a9d882ac4ad6 (diff) |
Minor changes in use-after-free patch to match the CCC handling style
Diffstat (limited to 'src/IO/http.c')
-rw-r--r-- | src/IO/http.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/IO/http.c b/src/IO/http.c index a9db1668..0c34a6b6 100644 --- a/src/IO/http.c +++ b/src/IO/http.c @@ -171,12 +171,11 @@ 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); - + ChainLink *Info = sd->Info; MSG_BW(sd->web, 1, "ERROR: %s", dStrerror(sd->Err)); - a_Chain_bfcb(OpAbort, sd->Info, NULL, "Both"); - dFree(sd->Info); - Http_socket_free(localkey); + a_Chain_bfcb(OpAbort, Info, NULL, "Both"); + Http_socket_free(VOIDP2INT(Info->LocalKey)); /* free sd */ + dFree(Info); } else { sd->connected_to = hc->host; hc->active_connections++; |