summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Steves <stevesk@cvs.openbsd.org>2002-12-30 17:55:26 +0000
committerKevin Steves <stevesk@cvs.openbsd.org>2002-12-30 17:55:26 +0000
commitd71790a436158bd3c498e32d8adb6b19b62b08a9 (patch)
tree8ce176b9098e87ed6fa612d8bfca86ea5b73d2cd
parente2e6b939a31258fbb2f5079484e1dcbc1d8d7f86 (diff)
correct return code check; from Owl. ok fgsch@
-rw-r--r--usr.bin/nc/socks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/nc/socks.c b/usr.bin/nc/socks.c
index af0fe29cff4..41f886edd63 100644
--- a/usr.bin/nc/socks.c
+++ b/usr.bin/nc/socks.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: socks.c,v 1.5 2002/02/28 18:05:36 markus Exp $ */
+/* $OpenBSD: socks.c,v 1.6 2002/12/30 17:55:25 stevesk Exp $ */
/*
* Copyright (c) 1999 Niklas Hallqvist. All rights reserved.
@@ -99,7 +99,7 @@ socks_connect (char *host, char *port, struct addrinfo hints,
else
proxyfd = remote_connect(proxyhost, SOCKS_PORT, proxyhints);
- if (!proxyfd)
+ if (proxyfd < 0)
return -1;
serveraddr = decode_addr (host);