Merge pull request #9634 from hieblmi/fix-nil-pointer
routerrpc: add nil check for MilliSat
This commit is contained in:
2 files changed
+5
-1
No files matched your search
@@ -68,6 +68,10 @@
|
||||
`estimateroutefee` to assume probing an LSP when given an invoice with a route
|
||||
hint containing a public channel to the destination.
|
||||
|
||||
* [Fixed a bug](https://github.com/lightningnetwork/lnd/pull/9634) that caused
|
||||
lnd to crash due to a nil pointer dereference when `estimateroutefee` is
|
||||
called for a payment request that contains a zero amount.
|
||||
|
||||
* [Fix a bug](https://github.com/lightningnetwork/lnd/pull/9474) where LND would
|
||||
fail to persist (and hence, propagate) node announcements containing address
|
||||
types (such as a DNS hostname) unknown to LND.
|
||||
|
||||
@@ -519,7 +519,7 @@ func (s *Server) probePaymentRequest(ctx context.Context, paymentRequest string,
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if *payReq.MilliSat <= 0 {
|
||||
if payReq.MilliSat == nil || *payReq.MilliSat <= 0 {
|
||||
return nil, errors.New("payment request amount must be " +
|
||||
"greater than 0")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user