bugGNUstep - Bugs: bug #41887, +[WebServer matchIP:addr to:pat]...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #41887: +[WebServer matchIP:addr to:pat] always matches single IP address

Submitted by:  T.Somequare <tsomeqdev>
Submitted on:  Mon 17 Mar 2014 03:43:53 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Wed 19 Mar 2014 08:09:07 AM UTC, comment #1:

Thanks … please check out the 1.5.0 release where a problem in ip address matching should be fixed.

Richard Frith-Macdonald <CaS>
Project Member
Mon 17 Mar 2014 03:43:53 PM UTC, original submission:

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];

T.Somequare <tsomeqdev>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by tsomeqdev (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 19 Mar 2014 08:09:07 AM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1