From ede361e617b6db26f36b3a09c3c4811eb047751f Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Tue, 2 Sep 1997 01:38:13 +0000 Subject: [PATCH] * decomp_tkt.c (decomp_ticket): Fix swapped args to memset git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10187 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb4/ChangeLog | 4 ++++ src/lib/krb4/decomp_tkt.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/krb4/ChangeLog b/src/lib/krb4/ChangeLog index 53c44afd2..2fd446a5b 100644 --- a/src/lib/krb4/ChangeLog +++ b/src/lib/krb4/ChangeLog @@ -1,3 +1,7 @@ +Mon Sep 1 21:37:36 1997 Tom Yu + + * decomp_tkt.c (decomp_ticket): Fix swapped args to memset. + Tue Aug 12 09:10:41 1997 Ezra Peisach * Makefile.in (OSSRCS): Add $(srcdir)/ to source location. diff --git a/src/lib/krb4/decomp_tkt.c b/src/lib/krb4/decomp_tkt.c index 5a9213b60..3c5952368 100644 --- a/src/lib/krb4/decomp_tkt.c +++ b/src/lib/krb4/decomp_tkt.c @@ -80,7 +80,7 @@ decomp_ticket(tkt, flags, pname, pinstance, prealm, paddress, session, setbuf(fp, keybuf); fwrite(tkt->dat, 1, tkt->length, fp); fclose(fp); - memset(keybuf, sizeof(keybuf), 0); /* Clear the buffer */ + memset(keybuf, 0, sizeof(keybuf)); /* Clear the buffer */ } #endif pcbc_encrypt((C_Block *)tkt->dat,(C_Block *)tkt->dat, @@ -95,7 +95,7 @@ decomp_ticket(tkt, flags, pname, pinstance, prealm, paddress, session, setbuf(fp, keybuf); fwrite(tkt->dat, 1, tkt->length, fp); fclose(fp); - memset(keybuf, sizeof(keybuf), 0); /* Clear the buffer */ + memset(keybuf, 0, sizeof(keybuf)); /* Clear the buffer */ } #endif -- 2.26.2