ext/puma_http11/mini_ssl.c in piesync-puma-3.12.6 vs ext/puma_http11/mini_ssl.c in piesync-puma-3.12.6.1

- old
+ new

@@ -172,14 +172,12 @@ ID sym_verification_flags = rb_intern("verification_flags"); VALUE verification_flags = rb_funcall(mini_ssl_ctx, sym_verification_flags, 0); if (!NIL_P(verification_flags)) { - X509_VERIFY_PARAM *param; - param = X509_VERIFY_PARAM_new(); + X509_VERIFY_PARAM *param = SSL_CTX_get0_param(ctx); X509_VERIFY_PARAM_set_flags(param, NUM2INT(verification_flags)); SSL_CTX_set1_param(ctx, param); - X509_VERIFY_PARAM_free(param); } if (!NIL_P(ca)) { StringValue(ca); SSL_CTX_load_verify_locations(ctx, RSTRING_PTR(ca), NULL);