1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 04:52:59 +01:00

uri_parser: terminate, if nothing to consume after scheme

This commit is contained in:
Cenk Gündoğan 2021-02-05 13:32:33 +01:00
parent 6f13325a52
commit e399ef5d76
No known key found for this signature in database
GPG Key ID: A3DBC2F744D484D2

View File

@ -224,6 +224,11 @@ static int _parse_absolute(uri_parser_result_t *result, char *uri,
return -1;
}
if (uri >= uri_end) {
/* nothing more to consume */
return 0;
}
if (has_authority) {
uri = _consume_authority(result, uri, uri_end);
if (uri == NULL) {