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:
parent
6f13325a52
commit
e399ef5d76
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user