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:
david 2007-11-21 02:31:07 +00:00
parent fbeb42a7a1
commit 1c59946d7a

View file

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