diff --git a/net/loolnb.cpp b/net/loolnb.cpp index 9e6ac4da5..f568821de 100644 --- a/net/loolnb.cpp +++ b/net/loolnb.cpp @@ -196,7 +196,7 @@ public: }; // Start the server. - if (args.back() == "ssl") + if (!args.empty() && args.back() == "ssl") server(addrSsl, poller, std::unique_ptr{new SslSocketFactory}); else #endif