Module: kamailio Branch: master Commit: c2f36a2c4f83b0ea077722ae6cc2fcecfb3616c1 URL: https://github.com/kamailio/kamailio/commit/c2f36a2c4f83b0ea077722ae6cc2fcec...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2025-05-02T08:53:58+02:00
pv_headers: proper pointer comparison for returned value
---
Modified: src/modules/pv_headers/pvh_xavp.c
---
Diff: https://github.com/kamailio/kamailio/commit/c2f36a2c4f83b0ea077722ae6cc2fcec... Patch: https://github.com/kamailio/kamailio/commit/c2f36a2c4f83b0ea077722ae6cc2fcec...
---
diff --git a/src/modules/pv_headers/pvh_xavp.c b/src/modules/pv_headers/pvh_xavp.c index e200afcf93a..f416fdb0c83 100644 --- a/src/modules/pv_headers/pvh_xavp.c +++ b/src/modules/pv_headers/pvh_xavp.c @@ -520,7 +520,7 @@ int pvh_clone_branch_xavi(struct sip_msg *msg, str *xname) if(sub->val.type == SR_XTYPE_DATA) continue; if(pvh_xavi_append_value(&sub->name, &sub->val, &br_xavi->val.v.xavp) - < 0) { + == NULL) { LM_ERR("cannot clone xavi %.*s\n", sub->name.len, sub->name.s); return -1; }