]> git.ipfire.org Git - thirdparty/curl.git/commit
multi: Improve parameter check for curl_multi_remove_handle
authorJay Satiro <raysatiro@yahoo.com>
Tue, 17 Mar 2020 22:59:07 +0000 (18:59 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 18 Mar 2020 06:58:42 +0000 (02:58 -0400)
commita268ad5d7e84189d8dfec3705d84a88ae064f7fc
treefd49d8fdcfdf90b8d46558282ee43c32a6d99c81
parent7284061361e32d6f4d6308bf41d751601d101ba2
multi: Improve parameter check for curl_multi_remove_handle

- If an easy handle is owned by a multi different from the one specified
  then return CURLM_BAD_EASY_HANDLE.

Prior to this change I assume user error could cause corruption.

Closes https://github.com/curl/curl/pull/5116
docs/libcurl/libcurl-errors.3
lib/multi.c