Add files from parent branch HEAD:
[pkgsrc.git] / security / mit-krb5 / patches / patch-be
1 $NetBSD: patch-be,v 1.1 2008/06/07 18:36:07 tonnerre Exp $
2
3 --- lib/gssapi/krb5/k5unseal.c.orig     2004-04-13 22:00:19.000000000 +0200
4 +++ lib/gssapi/krb5/k5unseal.c
5 @@ -457,8 +457,11 @@ kg_unseal_v1(context, minor_status, ctx,
6  
7      if ((ctx->initiate && direction != 0xff) ||
8         (!ctx->initiate && direction != 0)) {
9 -       if (toktype == KG_TOK_SEAL_MSG)
10 +       if (toktype == KG_TOK_SEAL_MSG) {
11             xfree(token.value);
12 +           message_buffer->value = NULL;
13 +           message_buffer->length = 0;
14 +       }
15         *minor_status = G_BAD_DIRECTION;
16         return(GSS_S_BAD_SIG);
17      }