Improve mag_conn memory handling
authorSimo Sorce <simo@redhat.com>
Tue, 16 Jun 2015 13:36:34 +0000 (09:36 -0400)
committerSimo Sorce <simo@redhat.com>
Tue, 16 Jun 2015 17:26:35 +0000 (13:26 -0400)
commit10d352bac12353efb5fe6e6efd2655e0562a1f8e
tree04aa53477b198be6948592cfed7cc089eb0d04d3
parentdb750842dd9e7bf2dd76bc9be91bbd4d045d3179
Improve mag_conn memory handling

Create a pool just for the mag_conn structure, so that we can clear up
all the memory used when a reset is necessary.
This also fixes a segfault introduced by a previous patch where we mistakenly
zeroed the whole structure including the memory pool pointer, which needs to
be preserved.

Closes #40

Signed-off-by: Simo Sorce <simo@redhat.com>
src/mod_auth_gssapi.c
src/mod_auth_gssapi.h
src/sessions.c