From: Tom Yu Date: Tue, 2 Sep 1997 01:38:13 +0000 (+0000) Subject: * decomp_tkt.c (decomp_ticket): Fix swapped args to memset X-Git-Tag: krb5-1.1-beta1~1038 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ede361e617b6db26f36b3a09c3c4811eb047751f;p=krb5.git * 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 --- 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