projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
fb5fcc5
)
Fix detection of rejected SOCKS5 proxy requests.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 3 Mar 2013 19:51:36 +0000
(20:51 +0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 3 Mar 2013 19:51:36 +0000
(20:51 +0100)
src/meta.c
patch
|
blob
|
history
diff --git
a/src/meta.c
b/src/meta.c
index
27baf8f
..
4077029
100644
(file)
--- a/
src/meta.c
+++ b/
src/meta.c
@@
-1,6
+1,6
@@
/*
meta.c -- handle the meta communication
/*
meta.c -- handle the meta communication
- Copyright (C) 2000-20
09
Guus Sliepen <guus@tinc-vpn.org>,
+ Copyright (C) 2000-20
13
Guus Sliepen <guus@tinc-vpn.org>,
2000-2005 Ivo Timmermans
2006 Scott Lamb <slamb@slamb.org>
2000-2005 Ivo Timmermans
2006 Scott Lamb <slamb@slamb.org>
@@
-190,7
+190,7
@@
bool receive_meta(connection_t *c) {
logger(LOG_ERR, "Invalid response from proxy server");
return false;
}
logger(LOG_ERR, "Invalid response from proxy server");
return false;
}
- if(c->buffer[1] == 0xff) {
+ if(c->buffer[1] ==
(char)
0xff) {
logger(LOG_ERR, "Proxy request rejected: unsuitable authentication method");
return false;
}
logger(LOG_ERR, "Proxy request rejected: unsuitable authentication method");
return false;
}