Skip to content

Commit f150dbb

Browse files
committed
merge revision(s) 45271: [Backport ruby#9672]
* ext/openssl/ossl.c (ossl_make_error): check NULL for unknown error reasons with old OpenSSL, and insert a colon iff formatted message is not empty. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@45485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent ea39ef7 commit f150dbb

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Mon Mar 31 15:38:07 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
2+
3+
* ext/openssl/ossl.c (ossl_make_error): check NULL for unknown
4+
error reasons with old OpenSSL, and insert a colon iff formatted
5+
message is not empty.
6+
17
Mon Feb 24 12:42:01 2014 Zachary Scott <e@zzak.io>
28

39
* lib/open-uri.rb: [DOC] use lower case version of core classes, same

ext/openssl/ossl.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,11 @@ ossl_make_error(VALUE exc, const char *fmt, va_list args)
302302
else
303303
msg = ERR_reason_error_string(e);
304304
if (NIL_P(str)) {
305-
str = rb_str_new_cstr(msg);
305+
if (msg) str = rb_str_new_cstr(msg);
306306
}
307307
else {
308-
rb_str_cat2(rb_str_cat2(str, ": "), msg);
308+
if (RSTRING_LEN(str)) rb_str_cat2(str, ": ");
309+
rb_str_cat2(str, msg ? msg : "(null)");
309310
}
310311
}
311312
if (dOSSL == Qtrue){ /* show all errors on the stack */

version.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#define RUBY_VERSION "1.9.3"
2-
#define RUBY_PATCHLEVEL 545
2+
#define RUBY_PATCHLEVEL 546
33

4-
#define RUBY_RELEASE_DATE "2014-02-24"
4+
#define RUBY_RELEASE_DATE "2014-03-31"
55
#define RUBY_RELEASE_YEAR 2014
6-
#define RUBY_RELEASE_MONTH 2
7-
#define RUBY_RELEASE_DAY 24
6+
#define RUBY_RELEASE_MONTH 3
7+
#define RUBY_RELEASE_DAY 31
88

99
#include "ruby/version.h"
1010

0 commit comments

Comments
 (0)