mirror of
https://github.com/curl/curl.git
synced 2026-07-10 05:37:15 +03:00
multi_ev: refresh sock entry after remove callback
This was missed in the fix for CVE-2026-9080. Reported-by: stze on hackerone URL: https://hackerone.com/reports/3823985 Closes #22163
This commit is contained in:
parent
f746780a1e
commit
e9a2b0dc72
1 changed files with 5 additions and 1 deletions
|
|
@ -213,7 +213,11 @@ static CURLMcode mev_forget_socket(struct Curl_multi *multi,
|
|||
rc = multi->socket_cb(data, s, CURL_POLL_REMOVE,
|
||||
multi->socket_userp, entry->user_data);
|
||||
mev_in_callback(multi, FALSE);
|
||||
entry->announced = FALSE;
|
||||
/* curl_easy_pause() is documented as callable from any callback; it
|
||||
* re-enters mev_assess() which may free this 'entry'. Re-fetch. */
|
||||
entry = mev_sh_entry_get(&multi->ev.sh_entries, s);
|
||||
if(entry)
|
||||
entry->announced = FALSE;
|
||||
}
|
||||
|
||||
mev_sh_entry_kill(multi, s);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue