From: Fredrik Tolf Date: Fri, 21 Mar 2008 13:13:00 +0000 (+0100) Subject: Fixed a bug in lstgetremotename2. X-Git-Tag: 1.3~11^2~5 X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=d334fbb51d75e00d16d8aa19693022ff96d1231c;p=doldaconnect.git Fixed a bug in lstgetremotename2. --- 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))