--- sourceforge.net/trunk/rdesktop/tcp.c 2004/06/15 22:17:08 710 +++ sourceforge.net/trunk/rdesktop/tcp.c 2004/06/25 15:46:26 724 @@ -148,9 +148,7 @@ hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; - n = getaddrinfo(server, tcp_port_rdp_s, &hints, &res); - - if (n < 0) + if (getaddrinfo(server, tcp_port_rdp_s, &hints, &res)) { error("getaddrinfo: %s\n", gai_strerror(n)); return False;