mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-03 05:04:21 +01:00
Avoid potential NULL pointer dereference in wallet_payment_store(...)
This commit is contained in:
committed by
Christian Decker
parent
a06f0dfeb1
commit
5697332677
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user