lib/smbclient/Init: throw std::runtime_error on error

This commit is contained in:
Max Kellermann
2016-09-05 11:32:20 +02:00
parent a69c3c1848
commit 135662d6b0
5 changed files with 18 additions and 21 deletions

View File

@@ -273,8 +273,7 @@ smbclient_neighbor_create(gcc_unused EventLoop &loop,
gcc_unused const ConfigBlock &block,
gcc_unused Error &error)
{
if (!SmbclientInit(error))
return nullptr;
SmbclientInit();
return new SmbclientNeighborExplorer(listener);
}