Merge pull request #7392 from adiabat/hltcinterceptfix
HTLC Interceptor: Fix nil pointer dereference
This commit is contained in:
2 files changed
+8
No files matched your search
@@ -125,6 +125,9 @@ current gossip sync query status.
|
|||||||
update in order to use the new versioned RPC and upgrade any on-chain outputs
|
update in order to use the new versioned RPC and upgrade any on-chain outputs
|
||||||
to the new version.
|
to the new version.
|
||||||
|
|
||||||
|
* [A bug has been fixed which could cause `lnd` to crash when parsing a
|
||||||
|
malformed HTLC intercept message](https://github.com/lightningnetwork/lnd/pull/7392).
|
||||||
|
|
||||||
## Wallet
|
## Wallet
|
||||||
|
|
||||||
* [Allows Taproot public keys and tap scripts to be imported as watch-only
|
* [Allows Taproot public keys and tap scripts to be imported as watch-only
|
||||||
|
|||||||
@@ -100,6 +100,11 @@ func (r *forwardInterceptor) onIntercept(
|
|||||||
func (r *forwardInterceptor) resolveFromClient(
|
func (r *forwardInterceptor) resolveFromClient(
|
||||||
in *ForwardHtlcInterceptResponse) error {
|
in *ForwardHtlcInterceptResponse) error {
|
||||||
|
|
||||||
|
if in.IncomingCircuitKey == nil {
|
||||||
|
return status.Errorf(codes.InvalidArgument,
|
||||||
|
"CircuitKey missing from ForwardHtlcInterceptResponse")
|
||||||
|
}
|
||||||
|
|
||||||
log.Tracef("Resolving intercepted packet %v", in)
|
log.Tracef("Resolving intercepted packet %v", in)
|
||||||
|
|
||||||
circuitKey := models.CircuitKey{
|
circuitKey := models.CircuitKey{
|
||||||
|
|||||||
Reference in new issue
Block a user