From d334fbb51d75e00d16d8aa19693022ff96d1231c Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Fri, 21 Mar 2008 14:13:00 +0100 Subject: [PATCH] Fixed a bug in lstgetremotename2. --- daemon/net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/net.c b/daemon/net.c index a8059d8..751c493 100644 --- a/daemon/net.c +++ b/daemon/net.c @@ -1485,9 +1485,9 @@ int lstgetremotename2(struct lport *lp, struct socket *sk2, struct sockaddr **na errno = EOPNOTSUPP; return(-1); } - if(ufd1->d.s.family != ufd2->d.s.family) + if(ufd1->d.l.family != ufd2->d.s.family) { - flog(LOG_ERR, "using lstgetremotename2 with sockets of differing family: %i %i", ufd1->d.s.family, ufd2->d.s.family); + flog(LOG_ERR, "using lstgetremotename2 with sockets of differing family: %i %i", ufd1->d.l.family, ufd2->d.s.family); return(-1); } if(getremotename(ufd1->fd, &name1, &len1)) -- 2.11.0