]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
negotiate_sspi_auth: Do not exit on the first request (#2159)
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Wed, 3 Sep 2025 16:15:05 +0000 (16:15 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Wed, 3 Sep 2025 18:50:05 +0000 (06:50 +1200)
Broken since 2010 commit 8eeb87e6.

src/auth/negotiate/SSPI/negotiate_sspi_auth.cc

index 26f140f8d7c5a83183528511fd2a141b9659abcc..137ffce3474b621c223adc4de82069df3aca4399 100644 (file)
@@ -148,7 +148,7 @@ manage_request()
     BOOL Done = FALSE;
 
     do {
-        if (fgets(buf, HELPER_INPUT_BUFFER, stdin))
+        if (!fgets(buf, HELPER_INPUT_BUFFER, stdin))
             return 0;
 
         c = static_cast<char*>(memchr(buf, '\n', HELPER_INPUT_BUFFER));