Fix crash in net_http_resolve() in single-thread mode
Pass the right object to the resolving function
This commit is contained in:
parent
d1a53e7d05
commit
71ddadfcfb
|
@ -948,7 +948,7 @@ static bool net_http_new_socket(struct http_t *state)
|
|||
thread = sthread_create(net_http_resolve, entry);
|
||||
sthread_detach(thread);
|
||||
#else
|
||||
net_http_resolve(state);
|
||||
net_http_resolve(entry);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue