From 49794295b1b1e0349295a0192887d582e3c12d66 Mon Sep 17 00:00:00 2001 From: dr7ana Date: Fri, 15 Dec 2023 10:37:42 -0800 Subject: [PATCH] booyakasha --- llarp/link/link_manager.cpp | 2 +- llarp/router_contact_remote.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/llarp/link/link_manager.cpp b/llarp/link/link_manager.cpp index 6c6041a13..1e9c4a950 100644 --- a/llarp/link/link_manager.cpp +++ b/llarp/link/link_manager.cpp @@ -238,7 +238,7 @@ namespace llarp } log::critical( logcat, - "Bootstrap seed node was {} to confirm fetch requester is white-listed; {}successfully " + "Bootstrap seed node was {} to confirm remote is white-listed; {}successfully " "saved RID", result ? "able" : "unable", result ? "" : "un"); diff --git a/llarp/router_contact_remote.cpp b/llarp/router_contact_remote.cpp index 387ebf89c..98d70a4d6 100644 --- a/llarp/router_contact_remote.cpp +++ b/llarp/router_contact_remote.cpp @@ -59,7 +59,8 @@ namespace llarp try { - util::file_to_buffer(fname, buf.data(), buf.size()); + auto nread = util::file_to_buffer(fname, buf.data(), buf.size()); + buf.resize(nread); oxenc::bt_dict_consumer btdc{buf}; bt_load(btdc);