It was calling bind(2) with a family of 0x02ff, which makes no sense and causes execution to fall off the end and segfault. Fix it by replacing 0x02ff with the appropriate 0x0002, or AF_INET. [Fixrm #7216]