diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/usr.bin/nc/socks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr.bin/nc/socks.c b/src/usr.bin/nc/socks.c index f8adda463a..1b06e0e12d 100644 --- a/src/usr.bin/nc/socks.c +++ b/src/usr.bin/nc/socks.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: socks.c,v 1.20 2012/03/08 09:56:28 espie Exp $ */ | 1 | /* $OpenBSD: socks.c,v 1.21 2015/03/26 21:19:51 tobias Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 1999 Niklas Hallqvist. All rights reserved. | 4 | * Copyright (c) 1999 Niklas Hallqvist. All rights reserved. |
| @@ -308,8 +308,8 @@ socks_connect(const char *host, const char *port, | |||
| 308 | } | 308 | } |
| 309 | 309 | ||
| 310 | /* Terminate headers */ | 310 | /* Terminate headers */ |
| 311 | if ((r = atomicio(vwrite, proxyfd, "\r\n", 2)) != 2) | 311 | if ((cnt = atomicio(vwrite, proxyfd, "\r\n", 2)) != 2) |
| 312 | err(1, "write failed (2/%d)", r); | 312 | err(1, "write failed (%zu/2)", cnt); |
| 313 | 313 | ||
| 314 | /* Read status reply */ | 314 | /* Read status reply */ |
| 315 | proxy_read_line(proxyfd, buf, sizeof(buf)); | 315 | proxy_read_line(proxyfd, buf, sizeof(buf)); |
