From 67293c818320405033ae65013492fcd8efde75f7 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Mon, 27 Feb 2017 12:22:14 +0100 Subject: [PATCH] nb: Fix the check in loolnb. Change-Id: I54f23cb5fb76e4f9aab2743ddc2e6cda04a2656b --- net/loolnb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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