]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
mk-lib1521: fix the long return code check
authorDaniel Stenberg <daniel@haxx.se>
Tue, 22 Oct 2024 22:11:12 +0000 (00:11 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 22 Oct 2024 22:41:05 +0000 (00:41 +0200)
It worked mostly by accident since it checked the variable from the
previous setopt invoke.

Closes #15372

tests/libtest/mk-lib1521.pl

index 1f642ad3be5497dfe518c3d19fa215bea85edd96..e668874654d2f9c62da0abb973d24b4ad0b378ae 100755 (executable)
@@ -441,7 +441,7 @@ MOO
 MOO
             ;
         my $flongcheckzero = <<MOO
-    if(first && present(first) && !bad_long(res,
+    if(first && present(first) && !bad_long(first,
        $name))
       errlongzero("$name", first, __LINE__);
 MOO
@@ -594,7 +594,6 @@ MOO
 
 print $fh <<FOOTER
   )
-
   curl_easy_setopt(curl, (CURLoption)1, 0);
   res = CURLE_OK;
 test_cleanup: