From 3780c61dc71ec49493a97b01c14ebca2580bcbd4 Mon Sep 17 00:00:00 2001 From: chenyong <1521761801@qq.com> Date: Fri, 13 Jul 2018 16:46:45 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91URI=20?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E8=BF=87=E7=A8=8B=E4=B8=AD=E7=AB=AF=E5=8F=A3?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E5=88=A4=E6=96=AD=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chenyong <1521761801@qq.com> --- webclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webclient.c b/webclient.c index f3ccfd0..0bad8aa 100644 --- a/webclient.c +++ b/webclient.c @@ -263,7 +263,7 @@ static int webclient_resolve_address(struct webclient_session *session, struct a } #else port_ptr = strstr(host_addr, ":"); - if (port_ptr) + if (port_ptr && port_ptr < ptr) { int port_len = ptr - port_ptr - 1;