Commit 903756a7 authored by Simon Morlat's avatar Simon Morlat
Browse files

fix possible infinite loop

parent 3d5d12d8
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment