artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
001b909
)
whitespace
author
deraadt
<deraadt@openbsd.org>
Mon, 27 Jun 2016 14:43:04 +0000
(14:43 +0000)
committer
deraadt
<deraadt@openbsd.org>
Mon, 27 Jun 2016 14:43:04 +0000
(14:43 +0000)
usr.bin/nc/socks.c
patch
|
blob
|
history
diff --git
a/usr.bin/nc/socks.c
b/usr.bin/nc/socks.c
index
c63cf34
..
c9aa517
100644
(file)
--- a/
usr.bin/nc/socks.c
+++ b/
usr.bin/nc/socks.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: socks.c,v 1.2
3 2015/12/10 18:31:52 mmcc Exp $
*/
+/* $OpenBSD: socks.c,v 1.2
4 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;