Date: Sat, 16 Apr 2005 16:14:05 GMT From: Xin Liu <lx@knight.6test.edu.cn> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/80008: Unnecessary requirement of sa_len in getnameinfo() Message-ID: <200504161614.j3GGE5Uo055417@www.freebsd.org> Resent-Message-ID: <200504161620.j3GGKP9s014213@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 80008 >Category: kern >Synopsis: Unnecessary requirement of sa_len in getnameinfo() >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Apr 16 16:20:25 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Xin Liu >Release: 4.11-stable >Organization: Tsinghua Univ. >Environment: FreeBSD ns.6test.edu.cn 4.11-STABLE FreeBSD 4.11-STABLE #0: Sat Apr 16 23:09:23 CST 2005 lx@ns.6test.edu.cn:/usr/obj/usr/src/sys/GENERIC i386 >Description: In the implementation of getnameinfo(): if (sa->sa_len != salen) return EAI_FAIL; This requirement of manually set sa->sa_len is unnecessary since POSIX does not require such a field in sockaddr, and it causes trouble for programs ported from OSs such as Linux where there is no sa_len field at all. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504161614.j3GGE5Uo055417>