You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by el...@apache.org on 2015/12/24 17:54:07 UTC

[3/7] mina git commit: Fixed a potential error when byte is above 0x7F

Fixed a potential error when byte is above 0x7F

Project: http://git-wip-us.apache.org/repos/asf/mina/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina/commit/9ff999c3
Tree: http://git-wip-us.apache.org/repos/asf/mina/tree/9ff999c3
Diff: http://git-wip-us.apache.org/repos/asf/mina/diff/9ff999c3

Branch: refs/heads/2.0
Commit: 9ff999c3773e050014d9254f08edf9b15c73bb02
Parents: 80dcbf7
Author: Emmanuel Lécharny <el...@symas.com>
Authored: Thu Dec 24 17:47:46 2015 +0100
Committer: Emmanuel Lécharny <el...@symas.com>
Committed: Thu Dec 24 17:47:46 2015 +0100

----------------------------------------------------------------------
 .../org/apache/mina/proxy/handlers/socks/Socks5LogicHandler.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina/blob/9ff999c3/mina-core/src/main/java/org/apache/mina/proxy/handlers/socks/Socks5LogicHandler.java
----------------------------------------------------------------------
diff --git a/mina-core/src/main/java/org/apache/mina/proxy/handlers/socks/Socks5LogicHandler.java b/mina-core/src/main/java/org/apache/mina/proxy/handlers/socks/Socks5LogicHandler.java
index e773a83..0de96fd 100644
--- a/mina-core/src/main/java/org/apache/mina/proxy/handlers/socks/Socks5LogicHandler.java
+++ b/mina-core/src/main/java/org/apache/mina/proxy/handlers/socks/Socks5LogicHandler.java
@@ -354,7 +354,7 @@ public class Socks5LogicHandler extends AbstractSocksLogicHandler {
                 if (buf.get(0) != 0x01) {
                     throw new IllegalStateException("Authentication failed");
                 }
-                if (buf.get(1) == 0xFF) {
+                if (buf.get(1) == 0x00FF) {
                     throw new IllegalStateException("Authentication failed: GSS API Security Context Failure");
                 }