]> sjero.net Git - linphone/commitdiff
fix possible infinite loop
authorSimon Morlat <simon.morlat@linphone.org>
Wed, 6 Jun 2012 19:48:29 +0000 (21:48 +0200)
committerSimon Morlat <simon.morlat@linphone.org>
Wed, 6 Jun 2012 19:48:29 +0000 (21:48 +0200)
coreapi/sal_eXosip2.c

index 863c4f47bc60fc0ec7d50681b2a6078a8581b677..51cef8b664df6f422d302b9a3b455a50bf40d430 100644 (file)
@@ -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);