make sure credentials are loaded
authorDaniel Kouřil <kouril@ics.muni.cz>
Fri, 18 Feb 2011 11:52:00 +0000 (11:52 +0000)
committerDaniel Kouřil <kouril@ics.muni.cz>
Fri, 18 Feb 2011 11:52:00 +0000 (11:52 +0000)
org.glite.lbjp-common.gss/src/glite_gss.c

index bae85f8..f77c3c3 100644 (file)
@@ -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;