Adam Majer
eb70b5ef0f
denial of service (bsc#1225417, CVE-2024-33427) OBS-URL: https://build.opensuse.org/package/show/server:proxy/squid?expand=0&rev=297
14 lines
596 B
Diff
14 lines
596 B
Diff
Index: squid-6.9/src/ConfigParser.cc
|
|
===================================================================
|
|
--- squid-6.9.orig/src/ConfigParser.cc
|
|
+++ squid-6.9/src/ConfigParser.cc
|
|
@@ -181,7 +181,7 @@ ConfigParser::UnQuote(const char *token,
|
|
*d = '\0';
|
|
|
|
// We are expecting a separator after quoted string, space or one of "()#"
|
|
- if (*(s + 1) != '\0' && !strchr(w_space "()#", *(s + 1)) && !errorStr) {
|
|
+ if (!errorStr && *(s + 1) != '\0' && !strchr(w_space "()#", *(s + 1))) {
|
|
errorStr = "Expecting space after the end of quoted token";
|
|
errorPos = token;
|
|
}
|