summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
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;