From 524a7996b010ebae64f51b1c5d36dbb150c5ef08 Mon Sep 17 00:00:00 2001 From: Ervin Hegedus Date: Mon, 26 Aug 2024 12:02:34 +0200 Subject: [PATCH] Fix string comparison --- apache2/msc_multipart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apache2/msc_multipart.c b/apache2/msc_multipart.c index 900d2c8e..d96fc813 100644 --- a/apache2/msc_multipart.c +++ b/apache2/msc_multipart.c @@ -134,7 +134,7 @@ static int multipart_parse_content_disposition(modsec_rec *msr, char *c_d_value) */ char quote = '\0'; - if (name == "filename*") { + if (strcmp(name, "filename*") == 0) { /* filename*=charset'[optional-language]'filename */ /* Read beyond the charset and the optional language*/ const char* start_of_charset = p;