mirror of
https://github.com/moparisthebest/curl
synced 2025-01-10 21:48:10 -05:00
doh: make Curl_doh_is_resolved survive a NULL pointer
... if Curl_doh() returned a NULL, this function gets called anyway as
in a asynch procedure. Then the doh struct pointer is NULL and signifies
an OOM situation.
Follow-up to 6246a1d8c6
This commit is contained in:
parent
5a19cb5a3c
commit
b97a60f5f4
@ -918,6 +918,8 @@ CURLcode Curl_doh_is_resolved(struct connectdata *conn,
|
||||
struct Curl_easy *data = conn->data;
|
||||
struct dohdata *dohp = data->req.doh;
|
||||
*dnsp = NULL; /* defaults to no response */
|
||||
if(!dohp)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
|
||||
if(!dohp->probe[DOH_PROBE_SLOT_IPADDR_V4].easy &&
|
||||
!dohp->probe[DOH_PROBE_SLOT_IPADDR_V6].easy) {
|
||||
|
Loading…
Reference in New Issue
Block a user