mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
multi: fix off-by-one finit[] array size
introduced in c6aedf680f
. It needs to be CURLM_STATE_LAST big since it
must hande the range 0 .. CURLM_STATE_MSGSENT (18) and CURLM_STATE_LAST
is 19 right now.
Reported-by: Dan Fandrich
Bug: http://curl.haxx.se/mail/lib-2015-10/0069.html
This commit is contained in:
parent
c6aedf680f
commit
443e81ea47
@ -110,7 +110,7 @@ static void mstate(struct SessionHandle *data, CURLMstate state
|
||||
)
|
||||
{
|
||||
CURLMstate oldstate = data->mstate;
|
||||
static const init_multistate_func finit[CURLM_STATE_LAST-1] = {
|
||||
static const init_multistate_func finit[CURLM_STATE_LAST] = {
|
||||
NULL,
|
||||
NULL,
|
||||
Curl_init_CONNECT, /* CONNECT */
|
||||
|
Loading…
Reference in New Issue
Block a user