From dcc492b8fd3dea82f8dce809758183cd280eb6e1 Mon Sep 17 00:00:00 2001 From: ruti <> Date: Tue, 24 Sep 2024 21:04:30 +0300 Subject: [PATCH] sizeof(struct sockaddr_ina) as the max key size --- extend.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/extend.c b/extend.c index da8b135..d03c326 100644 --- a/extend.c +++ b/extend.c @@ -23,9 +23,7 @@ #include "desync.h" #include "packets.h" -#define KEY_SIZE sizeof(uint16_t) + \ - sizeof(((struct sockaddr){}).sa_family) + \ - sizeof(struct sockaddr_in6) +#define KEY_SIZE sizeof(struct sockaddr_ina) int set_timeout(int fd, unsigned int s)