Free RC4 state if any
Free workstations tring if any
Also make sure to safely zero the struct before freeing to avoid leaking any
key material.
ctx = (struct gssntlm_ctx *)*context_handle;
+ safefree(ctx->workstation);
+
ret = ntlm_free_ctx(&ctx->ntlm);
safefree(ctx->nego_msg.data);
gssntlm_int_release_name(&ctx->source_name);
gssntlm_int_release_name(&ctx->target_name);
+ RC4_FREE(&ctx->send.seal_handle);
+ RC4_FREE(&ctx->recv.seal_handle);
+
+ safezero(*context_handle, sizeof(struct gssntlm_ctx));
safefree(*context_handle);
if (ret) {