]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
doh: fix wrong DEBUGASSERT for doh private_data
authorzhangxiuhua <zhangxiuhua@itiger.com>
Thu, 10 Jun 2021 08:17:31 +0000 (16:17 +0800)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 10 Jun 2021 14:13:13 +0000 (16:13 +0200)
Closes #7227

lib/doh.c

index 36f8cd58dc57d949d10c4aa1c69dbe5de333d496..cf3848d963244f8032301112eeb383d3c4f9efb3 100644 (file)
--- a/lib/doh.c
+++ b/lib/doh.c
@@ -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;