Skip to content

Commit

Permalink
Fix an issue with SASL integrity/confidentiality
Browse files Browse the repository at this point in the history
Fixed an issue that could cause the LDAP SDK to incorrectly handle
data read from a server when the communication is protected with
SASL integrity or confidentiality.  Thanks to Boris Danilovich for
reporting this problem and identifying the cause.
  • Loading branch information
dirmgr committed Nov 28, 2019
1 parent e7085c8 commit d49a006
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docs/release-notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ <h3>Version 4.0.14</h3>
</p>

<ul>
<li>
Fixed an issue that could cause the LDAP SDK to incorrectly handle data read
from a server when the communication is protected with SASL integrity or
confidentiality.Thanks to Boris Danilovich for reporting this problem and
identifying the cause.
<br><br>
</li>

<li>
Fixed a minor typo in the <tt>ldapsearch</tt> usage information
<br><br>
Expand Down
2 changes: 1 addition & 1 deletion src/com/unboundid/asn1/ASN1StreamReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public int peek()
}
else
{
if (saslInputStream == null)
if ((saslInputStream == null) || (saslInputStream.available() <= 0))
{
readAndDecodeSASLData(-1);
}
Expand Down

0 comments on commit d49a006

Please sign in to comment.