From 63e2917b180feb71ab9af60dfc04141e9b523ec1 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sun, 25 Mar 2007 23:09:39 +0000 Subject: [PATCH] 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 --- src/lib/krb5/krb/rd_priv.c | 1 + src/lib/krb5/krb/rd_safe.c | 1 + 2 files changed, 2 insertions(+) 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))) { -- 2.26.2