From: Greg Hudson Date: Tue, 6 Sep 2011 16:03:37 +0000 (+0000) Subject: Fix t_ccselect bugs X-Git-Tag: krb5-1.10-alpha1~210 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e68eef8d34b9527c3a24c9f0d6c0ae9b0be0e76f;p=krb5.git Fix t_ccselect bugs initiator_cred wasn't initialized if no second arg was given. t_ccselect wasn't removed on make clean. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25165 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/tests/gssapi/Makefile.in b/src/tests/gssapi/Makefile.in index 5b6765b59..d87ab9a3c 100644 --- a/src/tests/gssapi/Makefile.in +++ b/src/tests/gssapi/Makefile.in @@ -38,6 +38,5 @@ t_saslname: t_saslname.o $(GSS_DEPLIBS) $(KRB5_BASE_DEPLIBS) $(CC_LINK) -o t_saslname t_saslname.o $(GSS_LIBS) $(KRB5_BASE_LIBS) clean:: - $(RM) t_accname t_imp_cred t_imp_name t_s4u t_namingexts t_gssexts \ - t_spnego t_saslname - + $(RM) t_accname t_ccselect t_imp_cred t_imp_name t_s4u t_namingexts \ + t_gssexts t_spnego t_saslname diff --git a/src/tests/gssapi/t_ccselect.c b/src/tests/gssapi/t_ccselect.c index 8acf045ba..3a5bae5d8 100644 --- a/src/tests/gssapi/t_ccselect.c +++ b/src/tests/gssapi/t_ccselect.c @@ -75,7 +75,7 @@ int main(int argc, char *argv[]) { OM_uint32 minor, major; - gss_cred_id_t initiator_cred; + gss_cred_id_t initiator_cred = GSS_C_NO_CREDENTIAL; gss_buffer_desc buf; gss_name_t target_name, initiator_name = GSS_C_NO_NAME; gss_name_t real_initiator_name;