From b4b44feb814235f7017cc91ef0bf9b2ca52b4535 Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 18 Mar 2021 16:15:19 +0000 Subject: [PATCH] Do not include ':' in the port number. ok claudio --- usr.sbin/rpki-client/http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.20.1