whitelist: fix error handling when creating the socket fails

This commit is contained in:
Martin Willi
2013-07-18 16:00:30 +02:00
parent d3278c1f73
commit 0ccc5bb216
@@ -108,7 +108,13 @@ plugin_t *whitelist_plugin_create()
},
.listener = whitelist_listener_create(),
);
this->control = whitelist_control_create(this->listener);
if (!this->control)
{
destroy(this);
return NULL;
}
return &this->public.plugin;
}