Browse code

textops: fixed condition on header parsing error for find_hdr_line_start()

Daniel-Constantin Mierla authored on 15/06/2021 08:39:09
Showing 1 changed files
... ...
@@ -1612,8 +1612,8 @@ static inline int find_hdr_line_start(char *hname, unsigned int hname_len,
1612 1612
 	start = *buf;
1613 1613
 	len = *buf_len;
1614 1614
 	parse_hname2_str(&sname, &h1);
1615
-	if(h1.type!=HDR_ERROR_T) {
1616
-		LM_ERR("not a header name: %.*s\n", hname_len, hname);
1615
+	if(h1.type==HDR_ERROR_T) {
1616
+		LM_ERR("failed to parse header name: '%.*s'\n", hname_len, hname);
1617 1617
 		return 0;
1618 1618
 	}
1619 1619