transport: fix use-after-free accesses
commit6a33b7452fbaedcb70cc08d2afa3272271b4903f
authorStefan Becker <chemobejk@gmail.com>
Wed, 27 Mar 2013 15:47:28 +0000 (27 17:47 +0200)
committerStefan Becker <chemobejk@gmail.com>
Wed, 27 Mar 2013 15:47:28 +0000 (27 17:47 +0200)
tree1aba7678514c0f6743f925df75fc579c5c33a222
parent9bfc193ab8d263774423668079af94db3ae17e6c
transport: fix use-after-free accesses

This is a proposed fix for the Heisenbug crash reported here:

   https://bugzilla.redhat.com/show_bug.cgi?id=928323

Valgrind log showed invalid read/write accesses to the already freed
transport data structures in the following cases:

- sip: during redirect
- http: potentially on server initiated close
- http: on user initiated close

With this patch my valgrind log no longer shows any invalid accesses
from the SIP/HTTP input routines.
src/core/http-conn.c
src/core/sip-transport.c