Skip to content

Commit

Permalink
core: kemi - proper conditions for operators in sr_kemi_hdr_match_con…
Browse files Browse the repository at this point in the history
…tent()
  • Loading branch information
miconda committed Oct 19, 2020
1 parent d1947cd commit 3d4f5fc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/kemi.c
Expand Up @@ -2441,13 +2441,13 @@ static int sr_kemi_hdr_match_content(sip_msg_t *msg, str *hname, str *op,
if(op->len == 2) {
if(strncasecmp(op->s, "eq", 2) == 0) {
opval = 1;
} if(strncasecmp(op->s, "ne", 2) == 0) {
} else if(strncasecmp(op->s, "ne", 2) == 0) {
opval = 2;
} if(strncasecmp(op->s, "sw", 2) == 0) {
} else if(strncasecmp(op->s, "sw", 2) == 0) {
opval = 3;
} if(strncasecmp(op->s, "in", 2) == 0) {
} else if(strncasecmp(op->s, "in", 2) == 0) {
opval = 4;
} if(strncasecmp(op->s, "re", 2) == 0) {
} else if(strncasecmp(op->s, "re", 2) == 0) {
opval = 5;
LM_ERR("operator not implemented: %.*s\n", op->len, op->s);
return SR_KEMI_FALSE;
Expand All @@ -2468,7 +2468,7 @@ static int sr_kemi_hdr_match_content(sip_msg_t *msg, str *hname, str *op,
} else if(hidx->s[0]=='l' || hidx->s[0]=='L') {
/* last */
hidxval = 2;
} else if(hidx->s[0]=='a' || hidx->s[0]=='a') {
} else if(hidx->s[0]=='a' || hidx->s[0]=='A') {
/* all */
hidxval = 3;
} else if(hidx->s[0]=='o' || hidx->s[0]=='O') {
Expand Down

0 comments on commit 3d4f5fc

Please sign in to comment.