Lua API: Fix compile error when ssl disabled.

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
Jianhui Zhao committed 2018-07-19 00:19:01 +08:00
1 parent a1f069d9e7
commit d0c983f905
1 file changed
+2 -2
+2 -2
View File
@@ -132,12 +132,12 @@ static int lua_uh_ssl_init(lua_State *L)
lua_pushstring(L, "SSL is not compiled in"); lua_pushstring(L, "SSL is not compiled in");
lua_error(L); lua_error(L);
return 0; return 0;
#endif #else
if (lsrv->srv->ssl_init(lsrv->srv, key, cert) < 0) { if (lsrv->srv->ssl_init(lsrv->srv, key, cert) < 0) {
lua_pushstring(L, "SSL init failed"); lua_pushstring(L, "SSL init failed");
lua_error(L); lua_error(L);
} }
#endif
return 0; return 0;
} }