Fix t_ccselect bugs
authorGreg Hudson <ghudson@mit.edu>
Tue, 6 Sep 2011 16:03:37 +0000 (16:03 +0000)
committerGreg Hudson <ghudson@mit.edu>
Tue, 6 Sep 2011 16:03:37 +0000 (16:03 +0000)
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

src/tests/gssapi/Makefile.in
src/tests/gssapi/t_ccselect.c

index 5b6765b59d60fa07d75af89420a88aa10bcca258..d87ab9a3cfe39dcb723e18464bb22a506be3b742 100644 (file)
@@ -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
index 8acf045ba17961eb1f25eded17a62cfdf9e66ab3..3a5bae5d8717f20653fc6ce880cfe50ee8be04a6 100644 (file)
@@ -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;