]> sjero.net Git - linphone/commitdiff
fix bug with bad contact in 200Ok in case of authless proxy config.
authorSimon Morlat <simon.morlat@linphone.org>
Thu, 19 Apr 2012 09:36:17 +0000 (11:36 +0200)
committerSimon Morlat <simon.morlat@linphone.org>
Thu, 19 Apr 2012 09:36:17 +0000 (11:36 +0200)
coreapi/sal_eXosip2.c

index ef82b9bea28bebdc6aebc76c68f328efe9fef1d1..f21f4365477b1551191119a16e9cde79bd548a05 100644 (file)
@@ -1799,6 +1799,7 @@ static bool_t register_again_with_updated_contact(SalOp *op, osip_message_t *ori
                eXosip_register_send_register(op->rid,msg);
                eXosip_unlock();  
                ms_message("Resending new register with updated contact");
+               update_contact_from_response(op,last_answer);
                return TRUE;
        } else {
            ms_warning("Fail to send updated register.");
@@ -1806,8 +1807,6 @@ static bool_t register_again_with_updated_contact(SalOp *op, osip_message_t *ori
            return FALSE;
        }
        eXosip_unlock();
-
-       update_contact_from_response(op,last_answer);
        return FALSE;
 }