Use memset to silence some 'may be used uninitialized' warnings
authorKen Raeburn <raeburn@mit.edu>
Sun, 25 Mar 2007 23:09:39 +0000 (23:09 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sun, 25 Mar 2007 23:09:39 +0000 (23:09 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19279 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/rd_priv.c
src/lib/krb5/krb/rd_safe.c

index 1e4a0e79a9b3d31c5e2cd8d130d1f455c9848b0c..9d934972f66a8b3e1be79b6b66e4f1da3fde3e0d 100644 (file)
@@ -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,
index 758f9cf9a1534f0dd84b463901bcb20c2aea0463..2fa8ec43cbba3e0da254f989759591ec94355572 100644 (file)
@@ -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))) {