return 1;
}
-static void load_builtin_compressions(void)
+static int load_builtin_compressions(void)
{
- RUN_ONCE(&ssl_load_builtin_comp_once, do_load_builtin_compressions);
+ return RUN_ONCE(&ssl_load_builtin_comp_once, do_load_builtin_compressions);
}
#endif
if (comp != NULL) {
SSL_COMP ctmp;
#ifndef OPENSSL_NO_COMP
- load_builtin_compressions();
+ if (!load_builtin_compressions()) {
+ /*
+ * Currently don't care, since a failure only means that
+ * ssl_comp_methods is NULL, which is perfectly OK
+ */
+ }
#endif
*comp = NULL;
ctmp.id = s->compress_meth;