Commit 3a094de6 authored by Pekka Pessi's avatar Pekka Pessi

nta: do not free transaction in reliable_timeout() if caused by failure to send final response

Ignore-this: 8e32f83925b6f2a3629afbb8b20ba693

Issue detected by Coverity.

darcs-hash:20090512160807-db55f-beb9195fac0305287e24e8196ba7b6a6ad6cf00b.gz
parent febe2cde
......@@ -10994,10 +10994,12 @@ void reliable_timeout(nta_incoming_t *irq, int timeout)
irq->irq_in_callback = 0;
if (!timeout)
return;
if (irq->irq_completed && irq->irq_destroyed)
incoming_free(irq), irq = NULL;
if (timeout && irq && irq->irq_status < 200)
else if (irq->irq_status < 200)
nta_incoming_treply(irq, 503, "Reliable Response Time-Out", TAG_END());
}
......
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