소스 검색

【修改】URI 解析过程中端口解析判断条件

Signed-off-by: chenyong <1521761801@qq.com>
chenyong 7 년 전
부모
커밋
3780c61dc7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      webclient.c

+ 1 - 1
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;