From 85030874ea81054e2ec6031def48dfe2b5eb440a Mon Sep 17 00:00:00 2001 From: djalal Date: Sun, 26 Sep 2010 10:43:32 +0000 Subject: [PATCH] Fix a bug that prevents Nmap to compile on systems that lacks OpenSSL. This patch was contributed by Patrik Karlsson. --- nse_nsock.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nse_nsock.cc b/nse_nsock.cc index 9ed3d405c..2526e7dbc 100644 --- a/nse_nsock.cc +++ b/nse_nsock.cc @@ -721,9 +721,9 @@ SSL *nse_nsock_get_ssl (lua_State *L) } #else /* If HAVE_OPENSSL is defined, this comes from nse_ssl_cert.cc. */ -int get_ssl_certificate (lua_State *L) +int l_get_ssl_certificate (lua_State *L) { - return luaL_error("SSL is not available"); + return luaL_error(L, "SSL is not available"); } #endif