From d0d48f159898fe6fc28844f9338f8ff81ae48679 Mon Sep 17 00:00:00 2001 From: Hugh Waite Date: Fri, 22 May 2015 09:28:52 +0100 Subject: [PATCH] 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) --- modules/registrar/lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/registrar/lookup.c b/modules/registrar/lookup.c index 1d25acdccd3..3499dfefa32 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; }