From 897ec72a8a6e479ac497af8973660ad8caa76c03 Mon Sep 17 00:00:00 2001 From: Guillaume Beraudo Date: Wed, 11 May 2011 12:23:36 +0200 Subject: [PATCH] Remove uri front spaces on sal_address_new(). --- coreapi/sal_eXosip2.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/coreapi/sal_eXosip2.c b/coreapi/sal_eXosip2.c index 0c644d284..a347efeb3 100644 --- a/coreapi/sal_eXosip2.c +++ b/coreapi/sal_eXosip2.c @@ -1918,6 +1918,12 @@ int sal_unregister(SalOp *h){ SalAddress * sal_address_new(const char *uri){ osip_from_t *from; osip_from_init(&from); + + // Remove front spaces + while (uri[0]==' ') { + uri++; + } + if (osip_from_parse(from,uri)!=0){ osip_from_free(from); return NULL;