File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -110,8 +110,7 @@ Maybe<bool> RandomPrimeTraits::AdditionalConfig(
110110 return Nothing<bool >();
111111 }
112112 ArrayBufferOrViewContents<unsigned char > add (args[offset + 2 ]);
113- BN_bin2bn (add.data (), add.size (), params->add .get ());
114- if (!params->add ) {
113+ if (BN_bin2bn (add.data (), add.size (), params->add .get ()) == nullptr ) {
115114 THROW_ERR_INVALID_ARG_VALUE (env, " invalid options.add" );
116115 return Nothing<bool >();
117116 }
@@ -124,8 +123,7 @@ Maybe<bool> RandomPrimeTraits::AdditionalConfig(
124123 return Nothing<bool >();
125124 }
126125 ArrayBufferOrViewContents<unsigned char > rem (args[offset + 3 ]);
127- BN_bin2bn (rem.data (), rem.size (), params->rem .get ());
128- if (!params->rem ) {
126+ if (BN_bin2bn (rem.data (), rem.size (), params->rem .get ()) == nullptr ) {
129127 THROW_ERR_INVALID_ARG_VALUE (env, " invalid options.rem" );
130128 return Nothing<bool >();
131129 }
You can’t perform that action at this time.
0 commit comments