Commit 19256546 authored by Pekka Pessi's avatar Pekka Pessi

nua_stack_ack(), nua_invite_client_ack(): cleaned code

Ignore-this: 9edf1594e20f27f4e2effb43c83858ea

Fixed clean-up after ACK.

Coverity issue.

darcs-hash:20090513183929-db55f-449e9a0eb82f8092378e78e8e6fcb8724fc8ab31.gz
parent 605eb171
......@@ -1190,11 +1190,8 @@ int nua_stack_ack(nua_t *nua, nua_handle_t *nh, nua_event_t e,
return 1;
}
if (tags) {
if (tags)
nua_stack_set_params(nua, nh, nua_i_error, tags);
if (nh->nh_soa)
soa_set_params(nh->nh_soa, TAG_NEXT(tags));
}
nua_client_request_ref(cr);
error = nua_invite_client_ack(cr, tags);
......@@ -1387,8 +1384,8 @@ int nua_invite_client_ack(nua_client_request_t *cr, tagi_t const *tags)
error:
cr->cr_acked = 1; /* ... or we have at least tried */
nua_client_request_clean(cr);
nua_client_request_remove(cr);
nua_client_request_clean(cr);
return error;
}
......
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