Zero out newly allocated context so encrypt_block doesnt have garbage
authorPaul Park <pjpark@mit.edu>
Tue, 29 Aug 1995 21:50:19 +0000 (21:50 +0000)
committerPaul Park <pjpark@mit.edu>
Tue, 29 Aug 1995 21:50:19 +0000 (21:50 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6635 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/ChangeLog
src/lib/gssapi/krb5/accept_sec_context.c
src/lib/gssapi/krb5/init_sec_context.c

index 8e9b8fca738e1928393e3e81603886a87b40fdb4..6d378f8787111a4823e403b862831389f7eaf9b3 100644 (file)
@@ -1,4 +1,10 @@
 
+Tue Aug 29 17:48:40 EDT 1995   Paul Park       (pjpark@mit.edu)
+       * {accept,init}_sec_context.c - Zero out the newly allocated context
+               because garbage in the uninitialized context messes up the
+               serializers.
+
+
 Tue Aug 29 13:31:46 EDT 1995   Paul Park       (pjpark@mit.edu)
        * Makefile.in, .Sanitize, {im,ex}port_sec_context.c, ser_sctx.c - Add
                new modules to support {im,ex}port of GSSAPI context.
index f0317944ccffa60564cd26364a8ff46cbf9bc0ca..ba62cbb20ff8b9f694c31e7e1c7772832ea45f15 100644 (file)
@@ -213,6 +213,7 @@ krb5_gss_accept_sec_context(context, minor_status, context_handle,
       return(GSS_S_FAILURE);
    }
 
+   memset(ctx, 0, sizeof(krb5_gss_ctx_id_rec));
    ctx->context = context;
    ctx->auth_context = auth_context;
    ctx->initiate = 0;
index bbcb308b89677e3a1b9b7897775feb0557adc175..2bf413f5c61dd7d8f3745d6c28e444541972c5b3 100644 (file)
@@ -243,7 +243,7 @@ krb5_gss_init_sec_context(context, minor_status, claimant_cred_handle,
       }
 
       /* fill in the ctx */
-
+      memset(ctx, 0, sizeof(krb5_gss_ctx_id_rec));
       ctx->context = context;
       ctx->auth_context = NULL;
       ctx->initiate = 1;