Skip to content

Commit

Permalink
Merge pull request #306 from tmccombs/master
Browse files Browse the repository at this point in the history
Handle nil value in GetbyteForSSLSocket::getbyte
  • Loading branch information
HarlemSquirrel authored Nov 1, 2021
2 parents d6bb5c8 + bab0c30 commit 626c312
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/net/ldap/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ def open_connection(server)

module GetbyteForSSLSocket
def getbyte
getc.ord
c = getc
c && c.ord
end
end

Expand Down

0 comments on commit 626c312

Please sign in to comment.