From: Ken Raeburn Date: Sun, 25 Mar 2007 23:09:39 +0000 (+0000) Subject: Use memset to silence some 'may be used uninitialized' warnings X-Git-Tag: krb5-1.7-alpha1~1223 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=63e2917b180feb71ab9af60dfc04141e9b523ec1;p=krb5.git Use memset to silence some 'may be used uninitialized' warnings git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19279 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/rd_priv.c b/src/lib/krb5/krb/rd_priv.c index 1e4a0e79a..9d934972f 100644 --- a/src/lib/krb5/krb/rd_priv.c +++ b/src/lib/krb5/krb/rd_priv.c @@ -213,6 +213,7 @@ krb5_rd_priv(krb5_context context, krb5_auth_context auth_context, } } + memset(&replaydata, 0, sizeof(replaydata)); if ((retval = krb5_rd_priv_basic(context, inbuf, keyblock, plocal_fulladdr, premote_fulladdr, diff --git a/src/lib/krb5/krb/rd_safe.c b/src/lib/krb5/krb/rd_safe.c index 758f9cf9a..2fa8ec43c 100644 --- a/src/lib/krb5/krb/rd_safe.c +++ b/src/lib/krb5/krb/rd_safe.c @@ -217,6 +217,7 @@ krb5_rd_safe(krb5_context context, krb5_auth_context auth_context, } } + memset(&replaydata, 0, sizeof(replaydata)); if ((retval = krb5_rd_safe_basic(context, inbuf, keyblock, plocal_fulladdr, premote_fulladdr, &replaydata, outbuf))) {