netty/netty — pull request #865 by stefanmk (2012-12-28 21:08:16+00:00)
Title: Bug in SslHandler fixed

Bugfix in SslHandler.java,
commit e784a773f7dbfc4bba49e4ce88ddde82ec3c4e52 introduced a bug when adding synchronization accidentally changed the body of a for-loop.

3.6.0 broke our server using netty 3.x.
Comparing 3.5.11 and 3.6.0 it is clear that adding the sync statement in commit e784a773f7dbfc4bba49e4ce88ddde82ec3c4e52 a mistake was made by putting the if(needsWrap) statement into the for-loop beginning at line 1197.

With this fix our server runs fine again.