aboutsummaryrefslogtreecommitdiffstats
path: root/socks.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2015-09-26 00:19:13 +0000
committerXin LI <delphij@FreeBSD.org>2015-09-26 00:19:13 +0000
commit70061f65353c351c2a0712f76d3e29a0164ce1dc (patch)
tree347aff099a83083aef81109e2b2030871f2e6983 /socks.c
parent9911c7eeca0337f27d3d0ff146b9481d9cc385ef (diff)
downloadsrc-70061f65353c351c2a0712f76d3e29a0164ce1dc.tar.gz
src-70061f65353c351c2a0712f76d3e29a0164ce1dc.zip
Vendor import nc(1) from OPENBSD_5_8.vendor/netcat/5.8
Notes
Notes: svn path=/vendor/netcat/dist/; revision=288243 svn path=/vendor/netcat/5.8/; revision=288244; tag=vendor/netcat/5.8
Diffstat (limited to 'socks.c')
-rw-r--r--socks.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/socks.c b/socks.c
index f8adda463a22..1b06e0e12dd5 100644
--- a/socks.c
+++ b/socks.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: socks.c,v 1.20 2012/03/08 09:56:28 espie Exp $ */
+/* $OpenBSD: socks.c,v 1.21 2015/03/26 21:19:51 tobias Exp $ */
/*
* Copyright (c) 1999 Niklas Hallqvist. All rights reserved.
@@ -308,8 +308,8 @@ socks_connect(const char *host, const char *port,
}
/* Terminate headers */
- if ((r = atomicio(vwrite, proxyfd, "\r\n", 2)) != 2)
- err(1, "write failed (2/%d)", r);
+ if ((cnt = atomicio(vwrite, proxyfd, "\r\n", 2)) != 2)
+ err(1, "write failed (%zu/2)", cnt);
/* Read status reply */
proxy_read_line(proxyfd, buf, sizeof(buf));