mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
Avoid potential NULL pointer dereference in wallet_payment_store(...)
This commit is contained in:
parent
a06f0dfeb1
commit
5697332677
1 changed files with 1 additions and 0 deletions
|
@ -1275,6 +1275,7 @@ void wallet_payment_store(struct wallet *wallet,
|
|||
struct wallet_payment *payment;
|
||||
|
||||
payment = find_unstored_payment(wallet, payment_hash);
|
||||
assert(payment);
|
||||
|
||||
/* Don't attempt to add the same payment twice */
|
||||
assert(!payment->id);
|
||||
|
|
Loading…
Add table
Reference in a new issue