refuse to use empty creds mechglue_branch
authorDaniel Kouřil <kouril@ics.muni.cz>
Fri, 19 Feb 2010 11:08:46 +0000 (11:08 +0000)
committerDaniel Kouřil <kouril@ics.muni.cz>
Fri, 19 Feb 2010 11:08:46 +0000 (11:08 +0000)
org.glite.security.gss/src/glite_gss.c

index af53cc7..20da2c4 100644 (file)
@@ -788,6 +788,10 @@ edg_wll_gss_connect(edg_wll_GssCred cred, char const *hostname, int port,
 #endif
 
    /* XXX if cred == GSS_C_NO_CREDENTIAL set the ANONYMOUS flag */
+   if (cred == GSS_C_NO_CREDENTIAL) {
+       ret = EDG_WLL_GSS_ERROR_GSS;
+        goto end;
+   }
 
    do { /* XXX: the black magic above */