summaryrefslogtreecommitdiffstats
path: root/src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-11-29 07:26:28 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-11-29 07:27:09 +0100
commit8d3c7196bb301782e1a9ed690a66992b5d732911 (patch)
treef0aeaa661033ed458827f60423c734394404b935 /src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.c
parent68f2197cf5f81d5197999e5f3d2f980d8b04d4e2 (diff)
downloadfastd-8d3c7196bb301782e1a9ed690a66992b5d732911.tar
fastd-8d3c7196bb301782e1a9ed690a66992b5d732911.zip
Output an error message when the encrypt function fails
Diffstat (limited to 'src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.c')
-rw-r--r--src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.c b/src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.c
index 82887cf..743b0d1 100644
--- a/src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.c
+++ b/src/protocols/ec25519_fhmqvc/ec25519_fhmqvc.c
@@ -155,6 +155,7 @@ static void session_send(fastd_context_t *ctx, fastd_peer_t *peer, fastd_buffer_
fastd_buffer_t send_buffer;
if (!session->method->encrypt(ctx, peer, session->method_state, &send_buffer, buffer)) {
fastd_buffer_free(buffer);
+ pr_error(ctx, "failed to encrypt packet for %P", peer);
return;
}