[sr-dev] git:4.2:d0d48f15: registrar: Fix insertion of ulattrs xavp into position 0
Hugh Waite
hugh.waite at acision.com
Fri May 29 10:13:30 CEST 2015
Module: kamailio
Branch: 4.2
Commit: d0d48f159898fe6fc28844f9338f8ff81ae48679
URL: https://github.com/kamailio/kamailio/commit/d0d48f159898fe6fc28844f9338f8ff81ae48679
Author: Hugh Waite <hugh.waite at acision.com>
Committer: Hugh Waite <hugh.waite at acision.com>
Date: 2015-05-22T09:35:18+01:00
registrar: Fix insertion of ulattrs xavp into position 0
- If the first entry is an XTYPE_NULL entry it is replaced, not pushed down the stack
(cherry picked from commit 35d6610757eb3f14307df64fae3e9ec2c88b5c97)
---
Modified: modules/registrar/lookup.c
---
Diff: https://github.com/kamailio/kamailio/commit/d0d48f159898fe6fc28844f9338f8ff81ae48679.diff
Patch: https://github.com/kamailio/kamailio/commit/d0d48f159898fe6fc28844f9338f8ff81ae48679.patch
---
diff --git a/modules/registrar/lookup.c b/modules/registrar/lookup.c
index 1d25acd..3499dfe 100644
--- a/modules/registrar/lookup.c
+++ b/modules/registrar/lookup.c
@@ -316,7 +316,7 @@ int lookup_helper(struct sip_msg* _m, udomain_t* _d, str* _uri, int _mode)
if(ptr->xavp!=NULL) {
xavp = xavp_clone_level_nodata(ptr->xavp);
- if(xavp_add(xavp, NULL)<0) {
+ if(xavp_insert(xavp, 0, NULL)<0) {
ret = -3;
goto done;
}
More information about the sr-dev
mailing list