parent
4fb0f0b692
commit
78f060779e
|
@ -32,7 +32,6 @@ int uh_ssl_init(struct uh_server *srv, const char *key, const char *crt)
|
||||||
if (_init)
|
if (_init)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
_init = true;
|
|
||||||
dlh = dlopen("libustream-ssl.so", RTLD_LAZY | RTLD_LOCAL);
|
dlh = dlopen("libustream-ssl.so", RTLD_LAZY | RTLD_LOCAL);
|
||||||
if (!dlh) {
|
if (!dlh) {
|
||||||
uh_log_err("Failed to load ustream-ssl library: %s", dlerror());
|
uh_log_err("Failed to load ustream-ssl library: %s", dlerror());
|
||||||
|
@ -57,6 +56,8 @@ int uh_ssl_init(struct uh_server *srv, const char *key, const char *crt)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_init = true;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue