krb5 commit: Keep valgrind happy after time_rec change

Greg Hudson ghudson at mit.edu
Fri Aug 21 12:54:30 EDT 2015


https://github.com/krb5/krb5/commit/042e9fc95a662acb54dc9168749c6725f17ae34a
commit 042e9fc95a662acb54dc9168749c6725f17ae34a
Author: Simo Sorce <simo at redhat.com>
Date:   Fri Aug 21 12:16:07 2015 -0400

    Keep valgrind happy after time_rec change
    
    In gss_acquire_cred_from(), initialize initTimeOut and acceptTimeOut
    so valgrind does not complain.  All these values are ignored if
    time_rec is NULL, so not having those variables initialized is
    harmless, but it is annoying to get noise in the valgrind output.
    
    [ghudson at mit.edu: clarify commit message]
    
    ticket: 8235

 src/lib/gssapi/mechglue/g_acquire_cred.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/lib/gssapi/mechglue/g_acquire_cred.c b/src/lib/gssapi/mechglue/g_acquire_cred.c
index d29856c..9bd500b 100644
--- a/src/lib/gssapi/mechglue/g_acquire_cred.c
+++ b/src/lib/gssapi/mechglue/g_acquire_cred.c
@@ -133,7 +133,7 @@ OM_uint32 *			time_rec;
 {
     OM_uint32 major = GSS_S_FAILURE, tmpMinor;
     OM_uint32 first_major = GSS_S_COMPLETE, first_minor = 0;
-    OM_uint32 initTimeOut, acceptTimeOut, outTime = GSS_C_INDEFINITE;
+    OM_uint32 initTimeOut = 0, acceptTimeOut = 0, outTime = GSS_C_INDEFINITE;
     gss_OID_set mechs = GSS_C_NO_OID_SET;
     gss_OID_set_desc except_attrs;
     gss_OID_desc attr_oids[2];


More information about the cvs-krb5 mailing list