Skip to content

Commit 0c855fa

Browse files
committed
-fix for issue TooTallNate#43
1 parent 7f7e829 commit 0c855fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/net/tootallnate/websocket/drafts/Draft_10.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ else if( payloadlength == 126 ){
113113
throw new RuntimeException ( "Payloadsize is to big..." );
114114
}
115115
}
116-
int maskskeystart = realpacketsize;
117-
int payloadstart = realpacketsize += ( MASK ? 4 : 0 );
116+
int maskskeystart = foff + realpacketsize;
117+
int payloadstart = foff + realpacketsize += ( MASK ? 4 : 0 );
118118
realpacketsize += payloadlength;
119119
if( maxpacketsize < realpacketsize )
120120
throw new IncompleteException( realpacketsize );

0 commit comments

Comments
 (0)