summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorvenaas <venaas>2009-02-17 15:02:46 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2009-02-17 15:02:46 +0000
commit788b5abecc472c252d3cae9d9adf9c74a848b0c7 (patch)
treed37a4846def4e1ebdc052b62680521b759b1665f /util.c
parent9010bd05f750a5643927bac9dfac70ec888fff1f (diff)
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
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
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;