]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http: fix a build error when all auths are disabled
authorDaniel Stenberg <daniel@haxx.se>
Thu, 3 Apr 2025 10:10:45 +0000 (12:10 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 3 Apr 2025 10:38:36 +0000 (12:38 +0200)
error: â€˜result’ undeclared (first use in this function)

Found with randdisable

Closes #16939

lib/http.c

index 03d1959e29aea519d2c3dbc3d254f023ddd554fd..51515d1fe62842457c110006dee29342acc19b2f 100644 (file)
@@ -1075,12 +1075,12 @@ CURLcode Curl_http_input_auth(struct Curl_easy *data, bool proxy,
       break;
     Curl_str_passblanks(&auth);
   }
+  return result;
 #else
   (void) proxy;
   /* nothing to do when disabled */
+  return CURLE_OK;
 #endif
-
-  return result;
 }
 
 /**