summaryrefslogtreecommitdiff
path: root/sic.c
diff options
context:
space:
mode:
Diffstat (limited to 'sic.c')
-rw-r--r--sic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sic.c b/sic.c
index 2bfd700..5211807 100644
--- a/sic.c
+++ b/sic.c
@@ -188,7 +188,7 @@ main(int argc, char *argv[]) {
hints.ai_socktype = SOCK_STREAM;
if(getaddrinfo(host, port, &hints, &res) != 0)
die("error: cannot resolve hostname '%s'\n", host);
- for(ri = res; r; r = r->ai_next) {
+ for(r = res; r; r = r->ai_next) {
if((srv = socket(r->ai_family, r->ai_socktype, r->ai_protocol)) == -1)
continue;
if(connect(srv, r->ai_addr, r->ai_addrlen) == 0)