Commit 990ce6bd authored by jehan's avatar jehan

fix transaction finding code for ACK with multiple via

parent aec5bc22
......@@ -57,13 +57,13 @@ static void belle_sip_authorization_destroy(authorization_context_t* object) {
}
static void belle_sip_provider_uninit(belle_sip_provider_t *p){
belle_sip_list_free(p->listeners);
belle_sip_list_free(p->internal_listeners);
belle_sip_list_free_with_data(p->client_transactions,belle_sip_object_unref);
belle_sip_list_free_with_data(p->server_transactions,belle_sip_object_unref);
belle_sip_list_free_with_data(p->auth_contexts,(void(*)(void*))belle_sip_authorization_destroy);
belle_sip_list_free_with_data(p->dialogs,belle_sip_object_unref);
belle_sip_list_free_with_data(p->lps,belle_sip_object_unref);
p->listeners=belle_sip_list_free(p->listeners);
p->listeners=belle_sip_list_free(p->internal_listeners);
p->client_transactions=belle_sip_list_free_with_data(p->client_transactions,belle_sip_object_unref);
p->server_transactions=belle_sip_list_free_with_data(p->server_transactions,belle_sip_object_unref);
p->auth_contexts=belle_sip_list_free_with_data(p->auth_contexts,(void(*)(void*))belle_sip_authorization_destroy);
p->dialogs=belle_sip_list_free_with_data(p->dialogs,belle_sip_object_unref);
p->lps=belle_sip_list_free_with_data(p->lps,belle_sip_object_unref);
}
static void channel_state_changed(belle_sip_channel_listener_t *obj, belle_sip_channel_t *chan, belle_sip_channel_state_t state){
......@@ -601,7 +601,7 @@ belle_sip_server_transaction_t * belle_sip_provider_find_matching_server_transac
struct server_transaction_matcher matcher;
belle_sip_header_via_t *via=(belle_sip_header_via_t*)belle_sip_message_get_header((belle_sip_message_t*)req,"via");
belle_sip_server_transaction_t *ret=NULL;
belle_sip_list_t *elem;
belle_sip_list_t *elem=NULL;
if (via==NULL){
belle_sip_warning("Request has no via.");
return NULL;
......
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