mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2024-11-03 04:17:20 -05:00
Fix: Consider extra arguments in HTTP request line invalid
This commit is contained in:
parent
368fbd4442
commit
09fb1ce137
@ -386,6 +386,11 @@ int httpp_parse(http_parser_t *parser, const char *http_data, unsigned long len)
|
||||
case 2:
|
||||
version = &line[0][i];
|
||||
break;
|
||||
case 3:
|
||||
/* There is an extra element in the request line. This is not HTTP. */
|
||||
free(data);
|
||||
return 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user