connection: when freeing a connection purge its cached entries
authorDjalal Harouni <tixxdz@opendz.org>
Fri, 20 Jun 2014 16:50:06 +0000 (17:50 +0100)
committerDaniel Mack <zonque@gmail.com>
Fri, 20 Jun 2014 17:34:30 +0000 (19:34 +0200)
commite8d78b3a060eb27214cb4fae84eed585a596371a
tree2efcbad2cfc96b66acbc71aeebcc1c7c232dc633
parent2bb05a2a62a9495f23e9c5b032b8e6f69b41bf90
connection: when freeing a connection purge its cached entries

When freeing a connection remove also all the cached entries related
to this connection, otherwise if we access this cached entry through
another valid connection, we will hit memory corruption bugs.

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
connection.c
domain.h