Module: kamailio Branch: 4.3 Commit: 6bb3aed24281ece3c117c583c9a317def949e884 URL: https://github.com/kamailio/kamailio/commit/6bb3aed24281ece3c117c583c9a317de...
Author: Hugh Waite hugh.waite@acision.com Committer: Hugh Waite hugh.waite@acision.com Date: 2015-05-29T08:55:14+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 12098415cda75ed10d4d7c75602630b90ef6afd1)
---
Modified: modules/registrar/lookup.c
---
Diff: https://github.com/kamailio/kamailio/commit/6bb3aed24281ece3c117c583c9a317de... Patch: https://github.com/kamailio/kamailio/commit/6bb3aed24281ece3c117c583c9a317de...
---
diff --git a/modules/registrar/lookup.c b/modules/registrar/lookup.c index 6193327..efbe39c 100644 --- a/modules/registrar/lookup.c +++ b/modules/registrar/lookup.c @@ -345,7 +345,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; }