From 903756a7cb30363efa6ad5a8285848fee3bacfd3 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Wed, 6 Jun 2012 21:48:29 +0200 Subject: [PATCH] fix possible infinite loop --- coreapi/sal_eXosip2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/sal_eXosip2.c b/coreapi/sal_eXosip2.c index 863c4f47b..51cef8b66 100644 --- a/coreapi/sal_eXosip2.c +++ b/coreapi/sal_eXosip2.c @@ -1800,7 +1800,7 @@ static bool_t register_again_with_updated_contact(SalOp *op, osip_message_t *ori do{ ctt=NULL; osip_message_get_contact(last_answer,i,&ctt); - if (ctt==NULL) osip_message_get_contact(orig_request,0,&ctt); + if (i==0 && ctt==NULL) osip_message_get_contact(orig_request,0,&ctt); if (ctt){ osip_contact_to_str(ctt,&tmp); ori_contact_address = sal_address_new(tmp);