From: Daniel KouĊ™il Date: Fri, 19 Feb 2010 11:08:46 +0000 (+0000) Subject: refuse to use empty creds X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=refs%2Fheads%2Fmechglue_branch;p=jra1mw.git refuse to use empty creds --- diff --git a/org.glite.security.gss/src/glite_gss.c b/org.glite.security.gss/src/glite_gss.c index af53cc7..20da2c4 100644 --- a/org.glite.security.gss/src/glite_gss.c +++ b/org.glite.security.gss/src/glite_gss.c @@ -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 */