Module: kamailio Branch: master Commit: c2f36a2c4f83b0ea077722ae6cc2fcecfb3616c1 URL: https://github.com/kamailio/kamailio/commit/c2f36a2c4f83b0ea077722ae6cc2fcecfb3616c1
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@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/c2f36a2c4f83b0ea077722ae6cc2fcecfb3616c1.diff Patch: https://github.com/kamailio/kamailio/commit/c2f36a2c4f83b0ea077722ae6cc2fcecfb3616c1.patch --- 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; } _______________________________________________ Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org To unsubscribe send an email to sr-dev-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!