From 90ced7ecde678dbe7cbdc17f2a4df2822ab4e62e Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Tue, 18 May 2021 14:55:57 +0200 Subject: [PATCH] libhsmd: Do not use the message as the peer ID... --- contrib/libhsmd_python/libhsmd_python.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/libhsmd_python/libhsmd_python.c b/contrib/libhsmd_python/libhsmd_python.c index 3186b7ae3..ebdef4c55 100644 --- a/contrib/libhsmd_python/libhsmd_python.c +++ b/contrib/libhsmd_python/libhsmd_python.c @@ -54,7 +54,7 @@ char *handle(long long cap, long long dbid, char *peer_id, char *hexmsg) { request = tal_hexdata(tmpctx, hexmsg, strlen(hexmsg)); if (peer_id != NULL) { 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); } else { client = hsmd_client_new_main(tmpctx, cap, NULL);