17 lines
503 B
Text
17 lines
503 B
Text
$NetBSD$
|
|
|
|
--- lib/gssapi/krb5/k5unseal.c.orig 2004-04-13 22:00:19.000000000 +0200
|
|
+++ lib/gssapi/krb5/k5unseal.c
|
|
@@ -457,8 +457,11 @@ kg_unseal_v1(context, minor_status, ctx,
|
|
|
|
if ((ctx->initiate && direction != 0xff) ||
|
|
(!ctx->initiate && direction != 0)) {
|
|
- if (toktype == KG_TOK_SEAL_MSG)
|
|
+ if (toktype == KG_TOK_SEAL_MSG) {
|
|
xfree(token.value);
|
|
+ message_buffer->value = NULL;
|
|
+ message_buffer->length = 0;
|
|
+ }
|
|
*minor_status = G_BAD_DIRECTION;
|
|
return(GSS_S_BAD_SIG);
|
|
}
|