doh: fix wrong DEBUGASSERT for doh private_data

Closes #7227
This commit is contained in:
zhangxiuhua 2021-06-10 16:17:31 +08:00 committed by Daniel Stenberg
parent b9cdcc7a17
commit 23eef2394c
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -369,7 +369,7 @@ static CURLcode dohprobe(struct Curl_easy *data,
/* DOH private_data must be null because the user must have a way to
distinguish their transfer's handle from DOH handles in user
callbacks (ie SSL CTX callback). */
DEBUGASSERT(!data->set.private_data);
DEBUGASSERT(!doh->set.private_data);
if(curl_multi_add_handle(multi, doh))
goto error;