mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-05 23:24:21 +01:00
bitcoin: add len arg to pubkey conversion function.
Our json parser doesn't give nul-terminated strings. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -72,9 +72,9 @@ fail_free_secpctx:
|
||||
return false;
|
||||
}
|
||||
|
||||
bool pubkey_from_hexstr(const char *derstr, struct pubkey *key)
|
||||
bool pubkey_from_hexstr(const char *derstr, size_t slen, struct pubkey *key)
|
||||
{
|
||||
size_t slen = strlen(derstr), dlen;
|
||||
size_t dlen;
|
||||
unsigned char der[65];
|
||||
|
||||
dlen = hex_data_size(slen);
|
||||
|
||||
Reference in New Issue
Block a user