Lua API: Fix compile error when ssl disabled.

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
main
Jianhui Zhao 2018-07-19 00:19:01 +08:00
parent a1f069d9e7
commit d0c983f905
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}