Skip to content

Commit

Permalink
Handle nil value in GetbyteForSSLSocket::getbyte
Browse files Browse the repository at this point in the history
Related to  #266
  • Loading branch information
tmccombs committed May 11, 2018
1 parent d78dc1e commit bab0c30
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 bab0c30

Please sign in to comment.