From: tb Date: Thu, 18 Mar 2021 16:15:19 +0000 (+0000) Subject: Do not include ':' in the port number. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b4b44feb814235f7017cc91ef0bf9b2ca52b4535;p=openbsd Do not include ':' in the port number. ok claudio --- diff --git a/usr.sbin/rpki-client/http.c b/usr.sbin/rpki-client/http.c index 987792eb0bc..84c11fac3da 100644 --- a/usr.sbin/rpki-client/http.c +++ b/usr.sbin/rpki-client/http.c @@ -1,4 +1,4 @@ -/* $OpenBSD: http.c,v 1.7 2021/03/18 15:40:45 tb Exp $ */ +/* $OpenBSD: http.c,v 1.8 2021/03/18 16:15:19 tb Exp $ */ /* * Copyright (c) 2020 Nils Fisher * Copyright (c) 2020 Claudio Jeker @@ -364,7 +364,7 @@ http_parse_uri(char *uri, char **ohost, char **oport, char **opath) if (hosttail[1] == '/' || hosttail[1] == ':') host++; if (hosttail[1] == ':') - port = hosttail + 1; + port = hosttail + 2; if ((scope = memchr(host, '%', hosttail - host)) != NULL) hosttail = scope; } else {