From a9f02a898599143e02f8977c9ceed26a75fece48 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Thu, 7 Sep 2017 13:08:25 -0700 Subject: [PATCH] sphinx: Remove annoying warning when MACs do not match This was printing to stderr during the tests. Signed-off-by: Christian Decker --- common/sphinx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/sphinx.c b/common/sphinx.c index 61e4c58fc..9d8520d12 100644 --- a/common/sphinx.c +++ b/common/sphinx.c @@ -420,7 +420,7 @@ struct route_step *process_onionpacket( compute_packet_hmac(msg, assocdata, assocdatalen, keys.mu, hmac); if (memcmp(msg->mac, hmac, sizeof(hmac)) != 0) { - warnx("Computed MAC does not match expected MAC, the message was modified."); + /* Computed MAC does not match expected MAC, the message was modified. */ return tal_free(step); }