whitelist: fix error handling when creating the socket fails
This commit is contained in:
1 parent
d3278c1f73
commit
0ccc5bb216
1 file changed
+6
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user