--- libaitrpc/src/cli.c 2012/05/28 08:02:00 1.10.2.1 +++ libaitrpc/src/cli.c 2012/09/17 14:16:42 1.11.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: cli.c,v 1.10.2.1 2012/05/28 08:02:00 misho Exp $ +* $Id: cli.c,v 1.11.2.1 2012/09/17 14:16:42 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -145,7 +145,7 @@ rpc_cli_t * rpc_cli_openClient(u_int ProgID, u_char ProcID, int netBuf, const char *csHost, u_short Port) { rpc_cli_t *cli = NULL; - io_sockaddr_t sa; + io_sockaddr_t sa = IO_SOCKADDR_INIT; if (!io_gethostbyname(csHost, Port, &sa)) return NULL; @@ -154,7 +154,7 @@ rpc_cli_openClient(u_int ProgID, u_char ProcID, int ne if (netBuf < RPC_MIN_BUFSIZ) netBuf = BUFSIZ; else - netBuf = io_align(netBuf, 1); /* align netBuf length */ + netBuf = io_align(netBuf, 2); /* align netBuf length */ #ifdef HAVE_SRANDOMDEV srandomdev();