summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2021-03-18 16:15:19 +0000
committertb <tb@openbsd.org>2021-03-18 16:15:19 +0000
commitb4b44feb814235f7017cc91ef0bf9b2ca52b4535 (patch)
tree929c29cdaeb8c24eb36521df0a6f6ae011586e47
parentWhen changing the link local address send a RTM_IFINFO message out. (diff)
downloadwireguard-openbsd-b4b44feb814235f7017cc91ef0bf9b2ca52b4535.tar.xz
wireguard-openbsd-b4b44feb814235f7017cc91ef0bf9b2ca52b4535.zip
Do not include ':' in the port number.
ok claudio
-rw-r--r--usr.sbin/rpki-client/http.c4
1 files 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 <nils_fisher@hotmail.com>
* Copyright (c) 2020 Claudio Jeker <claudio@openbsd.com>
@@ -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 {