Skip to content

Commit 626c312

Browse files
Merge pull request #306 from tmccombs/master
Handle nil value in GetbyteForSSLSocket::getbyte
2 parents d6bb5c8 + bab0c30 commit 626c312

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/net/ldap/connection.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ def open_connection(server)
7474

7575
module GetbyteForSSLSocket
7676
def getbyte
77-
getc.ord
77+
c = getc
78+
c && c.ord
7879
end
7980
end
8081

0 commit comments

Comments
 (0)