From ad0dbcef18ed5cce246c18d70517780756fff011 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Thu, 23 Feb 2012 09:58:25 +0000 Subject: [PATCH] Fix segfault when trying alternative addresses without timeout (lost patch during merge). --- org.glite.lbjp-common.gss/src/glite_gss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.glite.lbjp-common.gss/src/glite_gss.c b/org.glite.lbjp-common.gss/src/glite_gss.c index b7cf7c5..9f9a48f 100644 --- a/org.glite.lbjp-common.gss/src/glite_gss.c +++ b/org.glite.lbjp-common.gss/src/glite_gss.c @@ -894,7 +894,7 @@ gss_connect(edg_wll_GssCred cred, char const *hostname, int port, ar.ent->h_addrtype, port, timeout, connection, gss_code); if (ret == 0) goto end; - if (timeout->tv_sec < 0 ||(timeout->tv_sec == 0 && timeout->tv_usec <= 0)) + if (timeout && (timeout->tv_sec < 0 ||(timeout->tv_sec == 0 && timeout->tv_usec <= 0))) goto end; k++; } while (mechs != GSS_C_NO_OID_SET && k < mechs->count); -- 1.8.2.3