sizeof(struct sockaddr_ina) as the max key size

This commit is contained in:
ruti 2024-09-24 21:04:30 +03:00
parent 7dde94e3d2
commit dcc492b8fd

View File

@ -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)