URL:
  <http://savannah.gnu.org/bugs/?41887>

                 Summary: +[WebServer matchIP:addr to:pat] always matches
single IP address
                 Project: GNUstep
            Submitted by: tsomeqdev
            Submitted on: 2014年03月18日 00時43分53秒
                Category: Libraries
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:


The method WebServer+matchIP:to: seems to be wrong. 
[WebServer matchIP:@"1.2.3.4" to:@"4.5.6.7"] returns YES.

I found where a wrong variable name is:
--- WebServer-1.4.6/WebServer.m-edited
+++ WebServer-1.4.6/WebServer.m
@@ -565,7 +565,7 @@
            {
              /* An IPv4 address in dot format (nnn.nnn.nnn.nnn)
               */
-             parts = [pattern componentsSeparatedByString: @"."];
+             parts = [address componentsSeparatedByString: @"."];
              expect = [[parts objectAtIndex: 0] intValue];
              expect = expect * 256 + [[parts objectAtIndex: 1] intValue];
              expect = expect * 256 + [[parts objectAtIndex: 2] intValue];





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41887>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to