Skip to content

Instantly share code, notes, and snippets.

@nahi
Created October 20, 2009 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nahi/214325 to your computer and use it in GitHub Desktop.
Save nahi/214325 to your computer and use it in GitHub Desktop.
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