mirror of
https://github.com/nmap/nmap.git
synced 2026-10-09 13:54:49 +00:00
Throw an exception instead of calling luaL_argerror in l_nsock_connect when an SSL connection is requested but OpenSSL isn't available.
This commit is contained in:
parent
fbeb42a7a1
commit
1c59946d7a
1 changed files with 3 additions and 2 deletions
|
|
@ -300,8 +300,9 @@ static int l_nsock_connect(lua_State* l) {
|
|||
udata->ssl_session);
|
||||
break;
|
||||
#else
|
||||
luaL_argerror(l, 4, "Sorry, you don't have OpenSSL.");
|
||||
return 0;
|
||||
lua_pushboolean(l, false);
|
||||
lua_pushstring(l, "Sorry, you don't have OpenSSL\n");
|
||||
return 2;
|
||||
#endif
|
||||
default:
|
||||
goto error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue