mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 23:54:22 +01:00
libhsmd: Do not use the message as the peer ID...
This commit is contained in:
committed by
Rusty Russell
parent
e27ce7d5b6
commit
90ced7ecde
@@ -54,7 +54,7 @@ char *handle(long long cap, long long dbid, char *peer_id, char *hexmsg) {
|
|||||||
request = tal_hexdata(tmpctx, hexmsg, strlen(hexmsg));
|
request = tal_hexdata(tmpctx, hexmsg, strlen(hexmsg));
|
||||||
if (peer_id != NULL) {
|
if (peer_id != NULL) {
|
||||||
peer = tal(tmpctx, struct node_id);
|
peer = tal(tmpctx, struct node_id);
|
||||||
node_id_from_hexstr(hexmsg, strlen(hexmsg), peer);
|
node_id_from_hexstr(peer_id, strlen(peer_id), peer);
|
||||||
client = hsmd_client_new_peer(tmpctx, cap, dbid, peer, NULL);
|
client = hsmd_client_new_peer(tmpctx, cap, dbid, peer, NULL);
|
||||||
} else {
|
} else {
|
||||||
client = hsmd_client_new_main(tmpctx, cap, NULL);
|
client = hsmd_client_new_main(tmpctx, cap, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user