]> source.dussan.org Git - redmine.git/commitdiff
Fix applied to ruby-net-ldap (#608).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 15 Feb 2008 17:22:21 +0000 (17:22 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 15 Feb 2008 17:22:21 +0000 (17:22 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1148 e93f8b46-1217-0410-a6f0-8f06a7374b81

vendor/plugins/ruby-net-ldap-0.0.4/lib/net/ber.rb

index e76100656d4e816e7b12b6480815ca059b2217b4..6589415dcb7de1f30839308300373269f391065c 100644 (file)
@@ -68,7 +68,7 @@ module Net
     # this can throw TypeErrors and other nasties.
     #
     def read_ber syntax=nil
-      return nil if eof?
+      return nil if (StringIO == self.class) and  eof?
 
       id = getc  # don't trash this value, we'll use it later
       tag = id & 31