From 788b5abecc472c252d3cae9d9adf9c74a848b0c7 Mon Sep 17 00:00:00 2001 From: venaas Date: Tue, 17 Feb 2009 15:02:46 +0000 Subject: fixed a bug with possible segfault in tcpconnect code, updated radsecproxy.1 git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@476 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util.c') diff --git a/util.c b/util.c index f41bf65..ca16d41 100644 --- a/util.c +++ b/util.c @@ -195,7 +195,7 @@ int connecttcp(struct addrinfo *addrinfo, struct addrinfo *src, uint16_t timeout s = -1; if (timeout) { - if (res && res->ai_next && timeout > 5) + if (addrinfo && addrinfo->ai_next && timeout > 5) timeout = 5; to.tv_sec = timeout; to.tv_usec = 0; -- cgit v1.1