summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>1997-09-02 01:38:33 +0000
committerTom Yu <tlyu@mit.edu>1997-09-02 01:38:33 +0000
commitc5e0910ec10ec1f2b2d1af239294c69276f232fb (patch)
tree8645067053144ff3e4f314094c546acd279f4faf /src
parentede361e617b6db26f36b3a09c3c4811eb047751f (diff)
downloadkrb5-c5e0910ec10ec1f2b2d1af239294c69276f232fb.tar.gz
krb5-c5e0910ec10ec1f2b2d1af239294c69276f232fb.tar.xz
krb5-c5e0910ec10ec1f2b2d1af239294c69276f232fb.zip
* rd_cred.c (krb5_rd_cred_basic): Fix swapped args to memset
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10188 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb5/krb/ChangeLog4
-rw-r--r--src/lib/krb5/krb/rd_cred.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog
index f6817f7190..4662258837 100644
--- a/src/lib/krb5/krb/ChangeLog
+++ b/src/lib/krb5/krb/ChangeLog
@@ -1,3 +1,7 @@
+Mon Sep 1 21:38:16 1997 Tom Yu <tlyu@mit.edu>
+
+ * rd_cred.c (krb5_rd_cred_basic): Fix swapped args to memset.
+
Fri Aug 29 16:41:25 1997 Tom Yu <tlyu@mit.edu>
* get_in_tkt.c (krb5_get_in_tkt): Move nulling out of
diff --git a/src/lib/krb5/krb/rd_cred.c b/src/lib/krb5/krb/rd_cred.c
index edbc96e64c..c66f71c27d 100644
--- a/src/lib/krb5/krb/rd_cred.c
+++ b/src/lib/krb5/krb/rd_cred.c
@@ -95,7 +95,7 @@ krb5_rd_cred_basic(context, pcreddata, pkeyblock, local_addr, remote_addr,
if ((retval = decode_krb5_cred(pcreddata, &pcred)))
return retval;
- memset(&encpart, sizeof(encpart), 0);
+ memset(&encpart, 0, sizeof(encpart));
if ((retval = decrypt_credencdata(context, pcred, pkeyblock, &encpart)))
goto cleanup_cred;