Browse Source

modules/nathelper: don't include enclosing bracket in contact uri in set_contact_alias

Federico Cabiddu 10 years ago
parent
commit
b525ada2d1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      modules/nathelper/nathelper.c

+ 2 - 2
modules/nathelper/nathelper.c

@@ -921,8 +921,8 @@ set_contact_alias_f(struct sip_msg* msg, char* str1, char* str2)
 		pkg_free(buf);
 		return -1;
 	}
-	c->uri.s = buf;
-	c->uri.len = len;
+	c->uri.s = buf + br;
+	c->uri.len = len -2*br;
 
 	return 1;
 }