mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-28 22:02:38 +02:00
The grpc stream.Recv() will decode an ForwardHtlcInterceptResponse without an IncomingCircuit, which will leave that pointer nil, causing a nil pointer dereferece when components of in.IncomingCircuitKey are used in the resolveFromClient() function. This commit checks for the nil pointer and returns an error before the rest of the parsing.