nb: Fix the check in loolnb.

Change-Id: I54f23cb5fb76e4f9aab2743ddc2e6cda04a2656b
This commit is contained in:
Jan Holesovsky 2017-02-27 12:22:14 +01:00
parent a68c33477d
commit 67293c8183

View file

@ -196,7 +196,7 @@ public:
};
// Start the server.
if (args.back() == "ssl")
if (!args.empty() && args.back() == "ssl")
server(addrSsl, poller, std::unique_ptr<SocketFactory>{new SslSocketFactory});
else
#endif