Fix re-authentication when connection bound is on
authorSimo Sorce <simo@redhat.com>
Sun, 14 Jun 2015 22:08:53 +0000 (18:08 -0400)
committerSimo Sorce <simo@redhat.com>
Sun, 14 Jun 2015 22:13:36 +0000 (18:13 -0400)
commitdb750842dd9e7bf2dd76bc9be91bbd4d045d3179
tree2fc8f444a316d59296e126e0beccba11b7bf18bc
parent5cd4e8a90f3db84e57a25570ffdfeaffcf908b6c
Fix re-authentication when connection bound is on

When re-using a context on a connection, a re-authentication request
may end up trying to use an established context handler to establish
a new context. This will fail with an error in GSSAPI.
Make sure to completely clean up the connection data when a brand
new authentication needs to happen so that no data is mistakenly
carried over.

Note this may leak a small amount of data, but only if authentication is
successful, so it is probably fine as is.

Closes #38

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