[PATCH]Fix the error in inet6 url parse

Speed First speedfirst at gmail.com
Thu Mar 3 15:48:39 MSK 2011


--- nginx-0.9.5/src/core/ngx_inet.c    2011-02-17 07:01:16.000000000 -0800
+++ nginx-0.9.5/src/core/ngx_inet2.c    2011-03-02 05:48:53.737646990 -0800
@@ -826,7 +826,11 @@
         if (*port == ':') {
             port++;

-            len = last - port;
+            if (uri) {
+                len = uri - port;
+            } else {
+                len = last - port;
+            }

             if (len == 0) {
                 u->err = "invalid port";
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-devel/attachments/20110303/fdbc2abc/attachment.html>


More information about the nginx-devel mailing list