projects
/
org.ibex.crypto.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix signed byte bug in read() reported by Joe Soroka
[org.ibex.crypto.git]
/
src
/
org
/
ibex
/
net
/
SSL.java
diff --git
a/src/org/ibex/net/SSL.java
b/src/org/ibex/net/SSL.java
index
f53a1ae
..
0f15b28
100644
(file)
--- a/
src/org/ibex/net/SSL.java
+++ b/
src/org/ibex/net/SSL.java
@@
-942,7
+942,7
@@
public class SSL extends Socket {
if(negotiated==0) return rawIS.read();
if(pendingLength > 0) {
pendingLength--;
- return pending[pendingStart++];
+ return pending[pendingStart++]&0xff;
} else {
byte[] buf = new byte[1];
int n = read(buf);