Discussion:
[sr-dev] git:master:4cd55a86: textops: find_hdr_line_start() - search for header name with colon
Daniel-Constantin Mierla
2021-06-02 19:23:38 UTC
Permalink
Content preview: Module: kamailio Branch: master Commit: 4cd55a86cdc3477da0ca4c384227833ec404bfa2
URL: https://github.com/kamailio/kamailio/commit/4cd55a86cdc3477da0ca4c384227833ec404bfa2
Author: Daniel-Constantin Mierla <***@gmail.com> Committer: Daniel-Constantin
Mierla <***@gmail.com> Date: 2021-06-02T21:22:48+02:00

Content analysis details: (-2.4 points, 5.5 required)

pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level
mail domains are different
1.0 FORGED_GMAIL_RCVD 'From' gmail.com does not match 'Received'
headers
0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
CUSTOM_MED
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider (miconda[at]gmail.com)
0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and
EnvelopeFrom freemail headers are
different
-1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list
manager

Module: kamailio
Branch: master
Commit: 4cd55a86cdc3477da0ca4c384227833ec404bfa2
URL: https://github.com/kamailio/kamailio/commit/4cd55a86cdc3477da0ca4c384227833ec404bfa2

Author: Daniel-Constantin Mierla <***@gmail.com>
Committer: Daniel-Constantin Mierla <***@gmail.com>
Date: 2021-06-02T21:22:48+02:00

textops: find_hdr_line_start() - search for header name with colon

---

Modified: src/modules/textops/textops.c

---

Diff: https://github.com/kamailio/kamailio/commit/4cd55a86cdc3477da0ca4c384227833ec404bfa2.diff
Patch: https://github.com/kamailio/kamailio/commit/4cd55a86cdc3477da0ca4c384227833ec404bfa2.patch

---

diff --git a/src/modules/textops/textops.c b/src/modules/textops/textops.c
index e93bc82bf2..75a00f16a8 100644
--- a/src/modules/textops/textops.c
+++ b/src/modules/textops/textops.c
@@ -1619,7 +1619,7 @@ static inline int find_hdr_line_start(char *hname, unsigned int hname_len,

while (hname_len <= len) {
/* attempt to find a header name */
- parse_sip_header_name(start, start + hname_len, &h2, 1, 0);
+ parse_sip_header_name(start, start + hname_len, &h2, 0, 0);
if(h2.type!=HDR_ERROR_T) {
if(h1.type>0 && h1.type==h2.type) {
*buf = start;

Loading...