1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

uri_parser: allow empty host part even if userinfo and port exist

This commit is contained in:
Cenk Gündoğan 2021-02-04 16:18:41 +01:00
parent f9b8fadd85
commit 1040cf9862
No known key found for this signature in database
GPG Key ID: A3DBC2F744D484D2

View File

@ -171,12 +171,6 @@ static char *_consume_authority(uri_parser_result_t *result, char *uri,
return NULL;
}
/* do not allow empty host if userinfo or port are set */
if ((result->host_len == 0) &&
(result->userinfo || result->port)) {
return NULL;
}
/* this includes the '/' */
return authority_end;
}