mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
funder: sanitize inputs
Error out if we've got the wrong info
This commit is contained in:
@@ -593,8 +593,14 @@ static void json_channel_open_failed(struct command *cmd,
|
||||
|
||||
static const char *init(struct plugin *p, const char *b, const jsmntok_t *t)
|
||||
{
|
||||
const char *err;
|
||||
|
||||
list_head_init(&pending_opens);
|
||||
|
||||
err = funder_check_policy(¤t_policy);
|
||||
if (err)
|
||||
plugin_err(p, "Invalid parameter combination: %s", err);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user