summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/usr.bin/nc/socks.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/usr.bin/nc/socks.c b/src/usr.bin/nc/socks.c
index 39e4331be3..5ec5c95cd6 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.28 2019/07/03 03:24:02 deraadt Exp $ */ 1/* $OpenBSD: socks.c,v 1.29 2019/07/29 15:19:03 benno Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1999 Niklas Hallqvist. All rights reserved. 4 * Copyright (c) 1999 Niklas Hallqvist. All rights reserved.
@@ -373,7 +373,8 @@ socks_connect(const char *host, const char *port,
373 /* Read status reply */ 373 /* Read status reply */
374 proxy_read_line(proxyfd, buf, sizeof(buf)); 374 proxy_read_line(proxyfd, buf, sizeof(buf));
375 if (proxyuser != NULL && 375 if (proxyuser != NULL &&
376 strncmp(buf, "HTTP/1.0 407 ", 12) == 0) { 376 (strncmp(buf, "HTTP/1.0 407 ", 12) == 0 ||
377 strncmp(buf, "HTTP/1.1 407 ", 12) == 0)) {
377 if (authretry > 1) { 378 if (authretry > 1) {
378 fprintf(stderr, "Proxy authentication " 379 fprintf(stderr, "Proxy authentication "
379 "failed\n"); 380 "failed\n");