From 72046b63d04f3f0422150456a2c38100e2cc9125 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Kou=C5=99il?= Date: Fri, 18 Feb 2011 11:52:00 +0000 Subject: [PATCH] make sure credentials are loaded --- org.glite.lbjp-common.gss/src/glite_gss.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 1.8.2.3