sphinx: Remove annoying warning when MACs do not match

This was printing to stderr during the tests.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker
2017-09-07 13:08:25 -07:00
committed by Rusty Russell
parent f2d67f88c0
commit a9f02a8985

View File

@@ -420,7 +420,7 @@ struct route_step *process_onionpacket(
compute_packet_hmac(msg, assocdata, assocdatalen, keys.mu, hmac); compute_packet_hmac(msg, assocdata, assocdatalen, keys.mu, hmac);
if (memcmp(msg->mac, hmac, sizeof(hmac)) != 0) { 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); return tal_free(step);
} }