Skip to content

Commit

Permalink
fixup! plugins: make rpc_command hook chainable
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyrussell committed Mar 2, 2021
1 parent 66de2aa commit bfc5917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightningd/jsonrpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ rpc_command_hook_callback(struct rpc_command_hook_payload *p,
/* We need to make copies here, as buffer and tokens
* can be reused. */
p->custom_replace = json_tok_copy(p, tok);
p->custom_buffer = tal_strdup(p, buffer);
p->custom_buffer = tal_dup_talarr(p, char, buffer);
return true;
}

Expand Down

0 comments on commit bfc5917

Please sign in to comment.