svn rev #25165: trunk/src/tests/gssapi/

ghudson@MIT.EDU ghudson at MIT.EDU
Tue Sep 6 12:03:37 EDT 2011


http://src.mit.edu/fisheye/changelog/krb5/?cs=25165
Commit By: ghudson
Log Message:
Fix t_ccselect bugs.

initiator_cred wasn't initialized if no second arg was given.
t_ccselect wasn't removed on make clean.


Changed Files:
U   trunk/src/tests/gssapi/Makefile.in
U   trunk/src/tests/gssapi/t_ccselect.c
Modified: trunk/src/tests/gssapi/Makefile.in
===================================================================
--- trunk/src/tests/gssapi/Makefile.in	2011-09-06 15:14:10 UTC (rev 25164)
+++ trunk/src/tests/gssapi/Makefile.in	2011-09-06 16:03:37 UTC (rev 25165)
@@ -38,6 +38,5 @@
 	$(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

Modified: trunk/src/tests/gssapi/t_ccselect.c
===================================================================
--- trunk/src/tests/gssapi/t_ccselect.c	2011-09-06 15:14:10 UTC (rev 25164)
+++ trunk/src/tests/gssapi/t_ccselect.c	2011-09-06 16:03:37 UTC (rev 25165)
@@ -75,7 +75,7 @@
 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;




More information about the cvs-krb5 mailing list