Browse Source

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
Hugh Waite 10 years ago
parent
commit
12098415cd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/registrar/lookup.c

+ 1 - 1
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;
 			}