Created
October 20, 2009 15:19
-
-
Save nahi/214325 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: ext/openssl/lib/openssl/buffering.rb | |
=================================================================== | |
--- ext/openssl/lib/openssl/buffering.rb (revision 25414) | |
+++ ext/openssl/lib/openssl/buffering.rb (working copy) | |
@@ -55,12 +55,7 @@ | |
def read(size=nil, buf=nil) | |
if size == 0 | |
- if buf | |
- buf.clear | |
- else | |
- buf = "" | |
- end | |
- return @eof ? nil : buf | |
+ return @eof ? nil : '' | |
end | |
until @eof | |
break if size && size <= @rbuffer.size | |
@@ -76,12 +71,7 @@ | |
def readpartial(maxlen, buf=nil) | |
if maxlen == 0 | |
- if buf | |
- buf.clear | |
- else | |
- buf = "" | |
- end | |
- return @eof ? nil : buf | |
+ return @eof ? nil : '' | |
end | |
if @rbuffer.empty? | |
begin | |
Index: ext/openssl/ossl_x509ext.c | |
=================================================================== | |
--- ext/openssl/ossl_x509ext.c (revision 25414) | |
+++ ext/openssl/ossl_x509ext.c (working copy) | |
@@ -199,6 +199,7 @@ | |
ossl_x509extfactory_set_subject_req(self, subject_req); | |
if (!NIL_P(crl)) | |
ossl_x509extfactory_set_crl(self, crl); | |
+ rb_iv_set(self, "@config", Qnil); | |
return self; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment