From: Daniel KouĊ™il Date: Fri, 18 Feb 2011 11:52:00 +0000 (+0000) Subject: make sure credentials are loaded X-Git-Tag: gridsite-core_R_1_7_10~8 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=72046b63d04f3f0422150456a2c38100e2cc9125;p=jra1mw.git make sure credentials are loaded --- diff --git a/org.glite.lbjp-common.gss/src/glite_gss.c b/org.glite.lbjp-common.gss/src/glite_gss.c index bae85f8..f77c3c3 100644 --- a/org.glite.lbjp-common.gss/src/glite_gss.c +++ b/org.glite.lbjp-common.gss/src/glite_gss.c @@ -828,6 +828,9 @@ edg_wll_gss_accept(edg_wll_GssCred cred, int sock, struct timeval *timeout, maj_stat = min_stat = min_stat2 = 0; memset(connection, 0, sizeof(*connection)); + if (cred == NULL) + return EINVAL; + /* GSI specific */ ret_flags = GSS_C_GLOBUS_SSL_COMPATIBLE;