Skip to content

Commit 524a799

Browse files
committed
Fix string comparison
1 parent cd4905b commit 524a799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apache2/msc_multipart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static int multipart_parse_content_disposition(modsec_rec *msr, char *c_d_value)
134134
*/
135135

136136
char quote = '\0';
137-
if (name == "filename*") {
137+
if (strcmp(name, "filename*") == 0) {
138138
/* filename*=charset'[optional-language]'filename */
139139
/* Read beyond the charset and the optional language*/
140140
const char* start_of_charset = p;

0 commit comments

Comments
 (0)