bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-inetutils] bug in inetd


From: Peppe Caizzone
Subject: [bug-inetutils] bug in inetd
Date: Mon, 19 Jan 2009 23:19:00 +0100

Hello,

in inetutils-1.6, in file inetd/inetd.c, at line 587:

#ifdef IPV6
  if (sep->se_family == AF_INET6)
    {
      int val = sep->se_v4mapped;
      if (setsockopt (sep->se_fd, IPPROTO_IPV6, IPV6_V6ONLY,
                      (char *) &val, sizeof (val)) < 0)
        syslog (LOG_ERR, "setsockopt (IPV6_V6ONLY): %m");
    }
#endif

should't the assignment for val be negated:

      int val = !(sep->se_v4mapped);

Otherwise inetd will only accept ipv6 connections when se_v4mapped is
1. Shouldn't it be the opposite?

Regards,
Peppe




reply via email to

[Prev in Thread] Current Thread [Next in Thread]