free the key stored in the context
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20496 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -49,12 +49,12 @@ OM_uint32 _gss_ntlm_delete_sec_context
|
||||
krb5_ntlm_free(ctx->context, ctx->ntlm);
|
||||
krb5_free_context(ctx->context);
|
||||
}
|
||||
if (ctx->password) {
|
||||
memset(ctx->password, 0, strlen(ctx->password));
|
||||
free(ctx->password);
|
||||
}
|
||||
if (ctx->username)
|
||||
free(ctx->username);
|
||||
if (ctx->key.data) {
|
||||
memset(ctx->key.data, 0, ctx->key.length);
|
||||
free(ctx->key.data);
|
||||
}
|
||||
krb5_data_free(&ctx->opaque);
|
||||
memset(ctx, 0, sizeof(*ctx));
|
||||
free(ctx);
|
||||
|
Reference in New Issue
Block a user