multi.c: fix segfault
This commit is contained in:
parent
9d0d1ada05
commit
a4758c3276
@ -127,7 +127,7 @@ struct Curl_one_easy {
|
|||||||
#define GOOD_MULTI_HANDLE(x) \
|
#define GOOD_MULTI_HANDLE(x) \
|
||||||
((x) && (((struct Curl_multi *)(x))->type == CURL_MULTI_HANDLE))
|
((x) && (((struct Curl_multi *)(x))->type == CURL_MULTI_HANDLE))
|
||||||
#define GOOD_EASY_HANDLE(x) \
|
#define GOOD_EASY_HANDLE(x) \
|
||||||
(((struct SessionHandle *)(x))->magic == CURLEASY_MAGIC_NUMBER)
|
((x) && (((struct SessionHandle *)(x))->magic == CURLEASY_MAGIC_NUMBER))
|
||||||
|
|
||||||
/* This is the struct known as CURLM on the outside */
|
/* This is the struct known as CURLM on the outside */
|
||||||
struct Curl_multi {
|
struct Curl_multi {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user