[macruby-changes] [5120] MacRuby/trunk/ext/openssl/ossl_ssl.c
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jan 5 00:43:13 PST 2011
Revision: 5120
http://trac.macosforge.org/projects/ruby/changeset/5120
Author: watson1978 at gmail.com
Date: 2011-01-05 00:43:08 -0800 (Wed, 05 Jan 2011)
Log Message:
-----------
Fixed a segfault of OpenSSL::SSL::SSLSocket#cert. raise exception if pointer is invalid. Merged from CRuby 1.9 r29784.
see https://github.com/ruby/ruby/commit/fb7a337e97db438d11dd48a33e9fd75483eefed8
Revision Links:
--------------
http://trac.macosforge.org/projects/ruby/changeset/29784
Modified Paths:
--------------
MacRuby/trunk/ext/openssl/ossl_ssl.c
Modified: MacRuby/trunk/ext/openssl/ossl_ssl.c
===================================================================
--- MacRuby/trunk/ext/openssl/ossl_ssl.c 2011-01-05 07:18:21 UTC (rev 5119)
+++ MacRuby/trunk/ext/openssl/ossl_ssl.c 2011-01-05 08:43:08 UTC (rev 5120)
@@ -1343,7 +1343,7 @@
X509 *cert = NULL;
Data_Get_Struct(self, SSL, ssl);
- if (ssl) {
+ if (!ssl) {
rb_warning("SSL session is not started yet.");
return Qnil;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20110105/97c28b59/attachment.html>
More information about the macruby-changes
mailing list