From: Tom Yu Date: Tue, 2 Sep 1997 01:38:33 +0000 (+0000) Subject: * rd_cred.c (krb5_rd_cred_basic): Fix swapped args to memset X-Git-Tag: krb5-1.1-beta1~1037 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c5e0910ec10ec1f2b2d1af239294c69276f232fb;p=krb5.git * 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 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index f6817f719..466225883 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 + + * rd_cred.c (krb5_rd_cred_basic): Fix swapped args to memset. + Fri Aug 29 16:41:25 1997 Tom Yu * 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 edbc96e64..c66f71c27 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;