Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jsonrpc: fix error when we abort batching due to timeout.
The read_json() call expects len_read to be the amount of *new* data read. If we call this back without resetting, it will parse this much random junk in the buffer. Fixes: #5766 Changelog-Fixed: Plugin: `autoclean` could misperform or get killed due to lightningd's invalid handling of JSON batching.
- Loading branch information