summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSzilárd Pfeiffer <pfeiffer.szilard@balabit.hu>2015-07-03 01:04:58 +0200
committerFlorian Westphal <fw@strlen.de>2015-07-03 01:06:41 +0200
commit900d7e80b8d8339622912c88f6faea96af4115d7 (patch)
treeb6afcbbdd28466aee6fbd35007467bb36e61bdee /src
parent3309fdb4413cb32f9b95e05064dc9dbb56550939 (diff)
conntrack: made the protocol option value case insensitive
Extensions register protocols by lowercase protocol name, but value of proto command line option may be uppercase. Extension related options cannot be used when protocol name comparision fails. Signed-off-by: Szilárd Pfeiffer <pfeiffer.szilard@balabit.hu> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src')
-rw-r--r--src/conntrack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conntrack.c b/src/conntrack.c
index 67fcda0..00b09b6 100644
--- a/src/conntrack.c
+++ b/src/conntrack.c
@@ -551,7 +551,7 @@ static struct ctproto_handler *findproto(char *name, int *pnum)
/* is it in the list of supported protocol? */
list_for_each_entry(cur, &proto_list, head) {
- if (strcmp(cur->name, name) == 0) {
+ if (strcasecmp(cur->name, name) == 0) {
*pnum = cur->protonum;
return cur;
}