Browse Source

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>
ppa-0.6.1
Christian Decker 8 years ago
committed by Rusty Russell
parent
commit
a9f02a8985
  1. 2
      common/sphinx.c

2
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);
}

Loading…
Cancel
Save