[sr-dev] git:master:51fc7673: pv: set str type for $hfl()
Daniel-Constantin Mierla
miconda at gmail.com
Tue Oct 25 10:17:08 CEST 2022
Module: kamailio
Branch: master
Commit: 51fc76737319f9b06ee4aa86e8c15c3fd5b62248
URL: https://github.com/kamailio/kamailio/commit/51fc76737319f9b06ee4aa86e8c15c3fd5b62248
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-10-25T09:53:26+02:00
pv: set str type for $hfl()
---
Modified: src/modules/pv/pv_core.c
---
Diff: https://github.com/kamailio/kamailio/commit/51fc76737319f9b06ee4aa86e8c15c3fd5b62248.diff
Patch: https://github.com/kamailio/kamailio/commit/51fc76737319f9b06ee4aa86e8c15c3fd5b62248.patch
---
diff --git a/src/modules/pv/pv_core.c b/src/modules/pv/pv_core.c
index 903389bf59..d279afccbf 100644
--- a/src/modules/pv/pv_core.c
+++ b/src/modules/pv/pv_core.c
@@ -2287,6 +2287,7 @@ int pv_get_hfl(sip_msg_t *msg, pv_param_t *param, pv_value_t *res)
return pv_get_null(msg, param, res);
}
+ res->flags = PV_VAL_STR;
if((tv.flags == 0) && (tv.ri==HDR_VIA_T)) {
if(msg->h_via1==NULL) {
LM_WARN("no Via header\n");
More information about the sr-dev
mailing list