--- libaitrpc/src/aitrpc.c 2016/08/02 10:26:58 1.20.2.2 +++ libaitrpc/src/aitrpc.c 2016/08/02 12:00:39 1.20.2.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitrpc.c,v 1.20.2.2 2016/08/02 10:26:58 misho Exp $ +* $Id: aitrpc.c,v 1.20.2.3 2016/08/02 12:00:39 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -153,7 +153,7 @@ try2read: pfd.events = POLLIN | POLLPRI; memset(buf, 0, blen); memset(&sa2, 0, sizeof sa2); - salen = (u_char) MIN(sizeof(sockaddr_t), 0xff); + salen = E_SOCKADDR_MAX; #ifndef __linux__ sa2.ss.ss_len = salen; #endif