diff options
author | Tom Yu <tlyu@mit.edu> | 1997-09-02 01:38:13 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 1997-09-02 01:38:13 +0000 |
commit | ede361e617b6db26f36b3a09c3c4811eb047751f (patch) | |
tree | b446ba50a467b16241836cecf8bd371c4018226f /src | |
parent | 9ac334423e6875092bb10d7d561c5fae68290f09 (diff) | |
download | krb5-ede361e617b6db26f36b3a09c3c4811eb047751f.tar.gz krb5-ede361e617b6db26f36b3a09c3c4811eb047751f.tar.xz krb5-ede361e617b6db26f36b3a09c3c4811eb047751f.zip |
* 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
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/krb4/ChangeLog | 4 | ||||
-rw-r--r-- | 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 53c44afd25..2fd446a5b1 100644 --- a/src/lib/krb4/ChangeLog +++ b/src/lib/krb4/ChangeLog @@ -1,3 +1,7 @@ +Mon Sep 1 21:37:36 1997 Tom Yu <tlyu@mit.edu> + + * decomp_tkt.c (decomp_ticket): Fix swapped args to memset. + Tue Aug 12 09:10:41 1997 Ezra Peisach <epeisach@mit.edu> * 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 5a9213b60b..3c59523687 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 |