Commit 85744941 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

nta.c: keep response message with nta_outgoing_tagged().

Share the latest response message between tagged and untagged
nta_outgoing_t structure.

darcs-hash:20061222153332-65a35-a060fdf18eb98397f447f6d788a4b2220dc380d4.gz
parent 833c9c8a
...@@ -9721,6 +9721,9 @@ int outgoing_recv_reliable(nta_outgoing_t *orq, ...@@ -9721,6 +9721,9 @@ int outgoing_recv_reliable(nta_outgoing_t *orq,
* @param magic * @param magic
* @param to_tag * @param to_tag
* @param rseq * @param rseq
*
* @bug Fix the memory leak - either one of the requests is left unreleased
* for ever.
*/ */
nta_outgoing_t *nta_outgoing_tagged(nta_outgoing_t *orq, nta_outgoing_t *nta_outgoing_tagged(nta_outgoing_t *orq,
nta_response_f *callback, nta_response_f *callback,
...@@ -9760,8 +9763,8 @@ nta_outgoing_t *nta_outgoing_tagged(nta_outgoing_t *orq, ...@@ -9760,8 +9763,8 @@ nta_outgoing_t *nta_outgoing_tagged(nta_outgoing_t *orq,
tagged->orq_to = to; tagged->orq_to = to;
tagged->orq_tport = tport_ref(orq->orq_tport); tagged->orq_tport = tport_ref(orq->orq_tport);
tagged->orq_request = (msg_t *)msg_ref_create(orq->orq_request); tagged->orq_request = msg_ref_create(orq->orq_request);
tagged->orq_response = NULL; tagged->orq_response = msg_ref_create(orq->orq_response);
tagged->orq_cancel = NULL; tagged->orq_cancel = NULL;
tagged->orq_pending = tport_pend(orq->orq_tport, tagged->orq_pending = tport_pend(orq->orq_tport,
......
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