From 02607711286be03ac9e074dde0ac02ba03025266 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Mon, 23 Jan 2012 12:44:40 +0100 Subject: [PATCH] fix duplicate route headers in registers --- coreapi/sal_eXosip2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coreapi/sal_eXosip2.c b/coreapi/sal_eXosip2.c index 7a2f3e051..948e67d89 100644 --- a/coreapi/sal_eXosip2.c +++ b/coreapi/sal_eXosip2.c @@ -2007,6 +2007,8 @@ static void register_set_contact(osip_message_t *msg, const char *contact){ static void sal_register_add_route(osip_message_t *msg, const char *proxy){ char tmp[256]={0}; snprintf(tmp,sizeof(tmp)-1,"<%s;lr>",proxy); + + osip_list_special_free(&msg->routes,(void (*)(void*))osip_route_free); osip_message_set_route(msg,tmp); }