[sr-dev] git:master:c264fbc6: pv: test for HDR_ERROR_T after header name parsing
Daniel-Constantin Mierla
miconda at gmail.com
Fri Jun 4 09:08:39 CEST 2021
Module: kamailio
Branch: master
Commit: c264fbc66a4690b073c72ffa8fc095227ce0ae8b
URL: https://github.com/kamailio/kamailio/commit/c264fbc66a4690b073c72ffa8fc095227ce0ae8b
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-06-03T15:29:50+02:00
pv: test for HDR_ERROR_T after header name parsing
---
Modified: src/modules/pv/pv_core.c
---
Diff: https://github.com/kamailio/kamailio/commit/c264fbc66a4690b073c72ffa8fc095227ce0ae8b.diff
Patch: https://github.com/kamailio/kamailio/commit/c264fbc66a4690b073c72ffa8fc095227ce0ae8b.patch
---
diff --git a/src/modules/pv/pv_core.c b/src/modules/pv/pv_core.c
index 8f398cdf43..5b011ea248 100644
--- a/src/modules/pv/pv_core.c
+++ b/src/modules/pv/pv_core.c
@@ -3501,8 +3501,8 @@ int pv_parse_hdr_name(pv_spec_p sp, str *in)
s.s = p;
s.len = in->len+1;
- if (parse_hname2_short(s.s, s.s + s.len, &hdr)==0)
- {
+ parse_hname2_short(s.s, s.s + s.len, &hdr);
+ if(hdr.type==HDR_ERROR_T) {
LM_ERR("error parsing header name [%.*s]\n", s.len, s.s);
goto error;
}
More information about the sr-dev
mailing list