gss: honor allocated_ctx in gss_{exchange,query}_meta_data
authorLuke Howard <lukeh@padl.com>
Thu, 16 Apr 2020 07:20:43 +0000 (07:20 +0000)
committerLuke Howard <lukeh@padl.com>
Thu, 16 Apr 2020 07:22:37 +0000 (17:22 +1000)
commit9383a88a86a361fcd9c4e9d40cc179e99d5c8b92
treee8cf594c389687ea6c66feaa4bdbfd7b083faef3
parentc70540480bc357f844f4785a784ba3aac0d6f922
gss: honor allocated_ctx in gss_{exchange,query}_meta_data

The NegoEx gss_{exchange,query}_meta_data functions set allocated_ctx but never
did anything with it. Use it to determine whether we should free the context
handle on error.
lib/gssapi/mech/gssspi_exchange_meta_data.c
lib/gssapi/mech/gssspi_query_meta_data.c