From f535637a394eecca1af182fb09b175b53e9fbf1f Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Fri, 25 Feb 2022 18:44:12 +0100 Subject: lib: Encrypt bare FRCP messages on encrypted flows Bare FRCP messages (ACKs without data, Rendez-vous packets) were not encrypted on encrypted flows, causing the receiver to fail decryption. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/lib/dev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lib/dev.c') diff --git a/src/lib/dev.c b/src/lib/dev.c index 5c57a538..ab02a783 100644 --- a/src/lib/dev.c +++ b/src/lib/dev.c @@ -153,8 +153,6 @@ struct { pthread_rwlock_t lock; } ai; -#include "frct.c" - static void port_destroy(struct port * p) { pthread_mutex_lock(&p->state_lock); @@ -265,6 +263,7 @@ static void flow_clear(int fd) } #include "crypt.c" +#include "frct.c" static void flow_fini(int fd) { -- cgit v1.2.3