[Debian-ha-maintainers] Bug#676888: corosync - Ignores scope id on ipv6 adresses

Bastian Blank waldi at debian.org
Sun Jun 10 10:20:03 UTC 2012


Package: corosync
Version: 1.4.2-3
Severity: important

corosync ignores the scopy id on
| mcastaddr: fe80::0123:45ff:fe67:89ab%eth0.1
It is explicitely not copied in totemip_parse.

totemip_parse have a lot of more problems:
- Comment is incorrect: Dunno is AF_UNSPEC, not 0.
- Does not call freeaddrinfo, so leaks memory.
- Writes into packed structures that lowers aligment.

The correct type to save this information is sockaddr_storage (to be
casted to sockaddr_in*, sockaddr_in6* or sockaddr* at appropriate
times).

Bastian

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash





More information about the Debian-ha-maintainers mailing list