From e7f6419f67c674c4fae052f9e37dda8b2d7bdce0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Sat, 19 Nov 2011 11:36:04 +0000 Subject: [PATCH] Fix segfault when trying alternative addresses without timeout. --- 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 7fada9d..857dbab 100644 --- a/org.glite.lbjp-common.gss/src/glite_gss.c +++ b/org.glite.lbjp-common.gss/src/glite_gss.c @@ -693,7 +693,7 @@ edg_wll_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; i++; } -- 1.8.2.3