--- libaitrpc/src/cli.c 2014/12/10 23:44:33 1.22.6.3 +++ libaitrpc/src/cli.c 2014/12/11 00:08:53 1.22.6.4 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: cli.c,v 1.22.6.3 2014/12/10 23:44:33 misho Exp $ +* $Id: cli.c,v 1.22.6.4 2014/12/11 00:08:53 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -656,7 +656,7 @@ rpc_cli_openClient2(u_char InstID, int netBuf, const c return NULL; } else strlcpy(szIface, csIface, sizeof szIface); - if (e_getifacebyname(szIface, &sal)) + if (!e_getifacebyname(szIface, &sal)) return NULL; cli = e_malloc(sizeof(rpc_cli_t));