Explorar el Código

Merge pull request #14 from chenyong111/master

【修改】URI 解析过程中端口解析判断条件
朱天龙 (Armink) hace 7 años
padre
commit
3a9f30fa1d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;