mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 09:34:24 +01:00
Fix conversion order
This commit is contained in:
committed by
Rusty Russell
parent
b8846dad49
commit
c85c2fcfe9
@@ -197,7 +197,7 @@ static bool IsValidSignatureEncoding(const unsigned char sig[], size_t len)
|
||||
|
||||
// Verify that the length of the signature matches the sum of the length
|
||||
// of the elements.
|
||||
if ((size_t)(lenR + lenS + 7) != len) return false;
|
||||
if ((size_t)lenR + (size_t)lenS + 7 != len) return false;
|
||||
|
||||
// Check whether the R element is an integer.
|
||||
if (sig[2] != 0x02) return false;
|
||||
|
||||
Reference in New Issue
Block a user