Ignore:
Timestamp:
Dec 1, 2016, 8:19:42 PM (8 years ago)
Author:
katerina
Message:

Fix for ticket #414 (case sensitive portcheck config directives)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_portcheck.c

    r516 r519  
    19451945}
    19461946 
    1947  
    19481947/* Subroutine to add a required or optional port/service
    19491948 */
     
    19671966  if (!p)
    19681967    return -1;
    1969   if (0 == strcmp(p, _("/tcp")))
     1968  if (0 == strcasecmp(p, _("/tcp")))
    19701969    proto = IPPROTO_TCP;
    1971   else if  (0 == strcmp(p, _("/udp")))
     1970  else if  (0 == strcasecmp(p, _("/udp")))
    19721971    proto = IPPROTO_UDP;
    19731972  else
Note: See TracChangeset for help on using the changeset viewer.