Skip to content

Commit bab0c30

Browse files
committed
Handle nil value in GetbyteForSSLSocket::getbyte
Related to #266
1 parent d78dc1e commit bab0c30

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)