]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
setopt: return OK earlier for the deprecated h2 dep options
authorDaniel Stenberg <daniel@haxx.se>
Thu, 2 Jul 2026 20:38:11 +0000 (22:38 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 3 Jul 2026 06:34:54 +0000 (08:34 +0200)
No need to have them checked twice.

Follow-up to bfbff7852f050232edd3e5

Closes #22250

lib/setopt.c

index eb9ff2e3967912abef0ec020b92832d4a44dc541..bfaeb728ae6628adf52cb6ad11bfc860e50a29a3 100644 (file)
@@ -1513,14 +1513,6 @@ static CURLcode setopt_pointers(struct Curl_easy *data, CURLoption option,
     break;
   }
 
-#ifdef USE_HTTP2
-  case CURLOPT_STREAM_DEPENDS:
-  case CURLOPT_STREAM_DEPENDS_E:
-    /* not doing stream dependencies any longer, but accept options
-     * for backward compatibility */
-    break;
-#endif
-
   default:
     return CURLE_UNKNOWN_OPTION;
   }
@@ -2906,10 +2898,11 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
     case CURLOPT_MIMEPOST:         /* curl_mime * */
     case CURLOPT_STDERR:           /* FILE * */
     case CURLOPT_SHARE:            /* CURLSH * */
-    case CURLOPT_STREAM_DEPENDS:   /* CURL * */
-    case CURLOPT_STREAM_DEPENDS_E: /* CURL * */
     case CURLOPT_CURLU:            /* CURLU * */
       return setopt_pointers(data, option, param);
+    case CURLOPT_STREAM_DEPENDS:   /* CURL * */
+    case CURLOPT_STREAM_DEPENDS_E: /* CURL * */
+      return CURLE_OK;
     default:
       break;
     }