diff options
Diffstat (limited to 'src/usr.bin/nc/socks.c')
-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 5ec5c95cd6..9766be7da4 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.29 2019/07/29 15:19:03 benno Exp $ */ | 1 | /* $OpenBSD: socks.c,v 1.30 2019/11/04 17:33:28 millert Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 1999 Niklas Hallqvist. All rights reserved. | 4 | * Copyright (c) 1999 Niklas Hallqvist. All rights reserved. |
@@ -53,7 +53,7 @@ | |||
53 | #define SOCKS_DOMAIN 3 | 53 | #define SOCKS_DOMAIN 3 |
54 | #define SOCKS_IPV6 4 | 54 | #define SOCKS_IPV6 4 |
55 | 55 | ||
56 | int remote_connect(const char *, const char *, struct addrinfo); | 56 | int remote_connect(const char *, const char *, struct addrinfo, char *); |
57 | int socks_connect(const char *, const char *, struct addrinfo, | 57 | int socks_connect(const char *, const char *, struct addrinfo, |
58 | const char *, const char *, struct addrinfo, int, | 58 | const char *, const char *, struct addrinfo, int, |
59 | const char *); | 59 | const char *); |
@@ -201,7 +201,7 @@ socks_connect(const char *host, const char *port, | |||
201 | if (authretry++ > 3) | 201 | if (authretry++ > 3) |
202 | errx(1, "Too many authentication failures"); | 202 | errx(1, "Too many authentication failures"); |
203 | 203 | ||
204 | proxyfd = remote_connect(proxyhost, proxyport, proxyhints); | 204 | proxyfd = remote_connect(proxyhost, proxyport, proxyhints, NULL); |
205 | 205 | ||
206 | if (proxyfd < 0) | 206 | if (proxyfd < 0) |
207 | return (-1); | 207 | return (-1); |