Changeset 519 for trunk


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

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/Changelog

    r518 r519  
    114.2.1:
     2        * fix case sensitivity (tcp vs TCP, udp vs UDP) in portcheck
     3        directives (reported by Anton H.)
    24        * fix documentation typo ('make deploy-install' ->
    35        'make install-deploy', reported by Ben)
  • 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.