summaryrefslogtreecommitdiff
path: root/usr.bin/nc
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-10 18:31:53 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-10 18:31:53 +0000
commit7ee354b4a593fcabcf1b2324102d7a95e48d8292 (patch)
treeb6a30c2e9124e390e8b5a5e21b307c7116e261eb /usr.bin/nc
parent72b1576e3b9544675c2af0cdaf6dda7c34038bb9 (diff)
Specify SOCKS version in error messages. ok deraadt@
Diffstat (limited to 'usr.bin/nc')
-rw-r--r--usr.bin/nc/socks.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/nc/socks.c b/usr.bin/nc/socks.c
index 79b97bbffaa..c63cf349395 100644
--- a/usr.bin/nc/socks.c
+++ b/usr.bin/nc/socks.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: socks.c,v 1.22 2015/12/10 16:49:28 mmcc Exp $ */
+/* $OpenBSD: socks.c,v 1.23 2015/12/10 18:31:52 mmcc Exp $ */
/*
* Copyright (c) 1999 Niklas Hallqvist. All rights reserved.
@@ -278,7 +278,7 @@ socks_connect(const char *host, const char *port,
if (cnt != 4)
err(1, "read failed (%zu/4)", cnt);
if (buf[1] != 0) {
- errx(1, "connection failed, SOCKS error: %s",
+ errx(1, "connection failed, SOCKSv5 error: %s",
socks5_strerror(buf[1]));
}
switch (buf[3]) {
@@ -316,7 +316,7 @@ socks_connect(const char *host, const char *port,
if (cnt != 8)
err(1, "read failed (%zu/8)", cnt);
if (buf[1] != 90) {
- errx(1, "connection failed, SOCKS error: %s",
+ errx(1, "connection failed, SOCKSv4 error: %s",
socks4_strerror(buf[1]));
}
} else if (socksv == -1) {