aboutsummaryrefslogtreecommitdiffstats
path: root/socks.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2019-05-10 17:28:54 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2019-05-10 17:28:54 +0000
commit3bf246c0bf58e2cbd22927dde8b3d46f1382e982 (patch)
tree448999596ac1f024e25360c1af34d75b35301f5e /socks.c
parent09ac48e1c32eeedc204f8543f59cf29a7459298b (diff)
downloadsrc-3bf246c0bf58e2cbd22927dde8b3d46f1382e982.tar.gz
src-3bf246c0bf58e2cbd22927dde8b3d46f1382e982.zip
Import netcat from OpenBSD 6.0.vendor/netcat/6.0
Notes
Notes: svn path=/vendor/netcat/dist/; revision=347446 svn path=/vendor/netcat/6.0/; revision=347447; tag=vendor/netcat/6.0
Diffstat (limited to 'socks.c')
-rw-r--r--socks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/socks.c b/socks.c
index c63cf3493954..c9aa5178c530 100644
--- a/socks.c
+++ b/socks.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: socks.c,v 1.23 2015/12/10 18:31:52 mmcc Exp $ */
+/* $OpenBSD: socks.c,v 1.24 2016/06/27 14:43:04 deraadt Exp $ */
/*
* Copyright (c) 1999 Niklas Hallqvist. All rights reserved.
@@ -241,7 +241,7 @@ socks_connect(const char *host, const char *port,
buf[2] = 0;
buf[3] = SOCKS_DOMAIN;
buf[4] = hlen;
- memcpy(buf + 5, host, hlen);
+ memcpy(buf + 5, host, hlen);
memcpy(buf + 5 + hlen, &serverport, sizeof serverport);
wlen = 7 + hlen;
break;