Fix padding size

This commit is contained in:
ruti 2023-07-07 15:38:53 +02:00
parent cd0b7b14ed
commit d922bb0590

View File

@ -616,7 +616,7 @@ static inline int on_tunnel(struct poolhd *pool, struct eval *val,
int on_udp_tunnel(struct eval *val, char *buffer, size_t bfsize) int on_udp_tunnel(struct eval *val, char *buffer, size_t bfsize)
{ {
struct sockaddr_ina addr; struct sockaddr_ina addr;
int skip = S_SIZE_I4, offs; int skip = S_SIZE_I6, offs;
do { do {
socklen_t asz = sizeof(addr); socklen_t asz = sizeof(addr);
ssize_t n = recvfrom(val->fd, buffer + skip, ssize_t n = recvfrom(val->fd, buffer + skip,