We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af87626 commit dc9aa0fCopy full SHA for dc9aa0f
ext/openssl/ossl_bn.c
@@ -494,14 +494,14 @@ BIGNUM_1c(sqr)
494
BIGNUM *bn1, *bn2 = GetBNPtr(other), *result; \
495
VALUE obj; \
496
GetBN(self, bn1); \
497
- obj = NewBN(rb_obj_class(self)); \
498
if (!(result = BN_new())) { \
499
ossl_raise(eBNError, NULL); \
500
} \
501
if (BN_##func(result, bn1, bn2) <= 0) { \
502
BN_free(result); \
503
504
+ obj = NewBN(rb_obj_class(self)); \
505
SetBN(obj, result); \
506
return obj; \
507
}
0 commit comments