Skip to content

Commit

Permalink
pv: set str type for $hfl()
Browse files Browse the repository at this point in the history
(cherry picked from commit 51fc767)
  • Loading branch information
miconda committed Jan 6, 2023
1 parent 53f6395 commit e48730f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/pv/pv_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit e48730f

Please sign in to comment.