diff options
author | venaas <venaas> | 2009-02-17 15:02:46 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2009-02-17 15:02:46 +0000 |
commit | 788b5abecc472c252d3cae9d9adf9c74a848b0c7 (patch) | |
tree | d37a4846def4e1ebdc052b62680521b759b1665f /util.c | |
parent | 9010bd05f750a5643927bac9dfac70ec888fff1f (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |