mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
should check retuen value of rb_protect.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d83381e717
commit
45ca1d0754
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ ossl_buf2str(char *buf, int len)
|
|||
int status = 0;
|
||||
|
||||
str = rb_protect((VALUE(*)_(()))ossl_str_new, len, &status);
|
||||
memcpy(RSTRING(str)->ptr, buf, len);
|
||||
if(!NIL_P(str)) memcpy(RSTRING(str)->ptr, buf, len);
|
||||
OPENSSL_free(buf);
|
||||
if(status) rb_jump_tag(status);
|
||||
|
||||
|
|
Loading…
Reference in a new issue