Browse Source

Avoid potential NULL pointer dereference in wallet_payment_store(...)

ppa-0.6.1
practicalswift 7 years ago
committed by Christian Decker
parent
commit
5697332677
  1. 1
      wallet/wallet.c

1
wallet/wallet.c

@ -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…
Cancel
Save