Lua API: Fix compile error when ssl disabled.
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>main
parent
a1f069d9e7
commit
d0c983f905
|
@ -132,12 +132,12 @@ static int lua_uh_ssl_init(lua_State *L)
|
|||
lua_pushstring(L, "SSL is not compiled in");
|
||||
lua_error(L);
|
||||
return 0;
|
||||
#endif
|
||||
|
||||
#else
|
||||
if (lsrv->srv->ssl_init(lsrv->srv, key, cert) < 0) {
|
||||
lua_pushstring(L, "SSL init failed");
|
||||
lua_error(L);
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue