xinetd: socket bind: Invalid argument (errno = 22) when using USERID on ipv6
authorChristian Schoenebeck <christian.schoenebeck@gmail.com>
Fri, 15 Aug 2014 12:11:43 +0000 (14:11 +0200)
committerJonathan McCrohan <jmccrohan@gmail.com>
Sat, 16 Aug 2014 16:47:08 +0000 (17:47 +0100)
commit8eb8659e41441c9884304b66c288b790b8d24abd
tree24259f440722ef810d5633759e4c281c0be69c3a
parent61a1fdeb4af143ebdd1feeeae9a2e02193f4523d
xinetd: socket bind: Invalid argument (errno = 22) when using USERID on ipv6

Use right size of addresses in bind() call. Also use getpeername addresses when
connecting to ident service to prevent address family mismatch between socket(),
bind() and connect() calls.

---
Christian Schoenebeck via github pull request #205:
Reported for a long time in the web. Still exists in the current sources.
Already reported and offert on TRAC Ticket #15821.

You can find a lot of entries on "Google" about the reported problem.
I got the same error on my WNDR3800 and von VirtualBox X86.
I copied the patch to my local trunk build system and recompiled.
The problem was fixed.

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com>
net/xinetd/Makefile
net/xinetd/patches/004-ident-bind.patch [new file with mode: 0644]