Browse Source
wire_sync_write() adds length, but we already have it, so use write_all. sync_crypto_read() handed an on-stack buffer to cryptomsg_decrypt_header, which expected a tal() pointer, so use the known length instead. sync_crypto_read() also failed to read the tag; add that in (no overflow possible as 16 is an int, len is a u16). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>ppa-0.6.1
Rusty Russell
8 years ago
3 changed files with 6 additions and 8 deletions
Loading…
Reference in new issue