From: Anselm R Garbe Date: Sat, 21 Feb 2009 19:14:13 +0000 (+0000) Subject: thanks to Matthias-Christian Ott for this hint X-Git-Url: https://git.armaanb.net/?p=sic.git;a=commitdiff_plain;h=b3ed5f414fab000e509ae23094befddca2aa6137 thanks to Matthias-Christian Ott for this hint --- 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)