Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Aug 2007 05:50:06 GMT
From:      Mark Andrews <Mark_Andrews@isc.org>
To:        freebsd-standards@FreeBSD.org
Subject:   Re: standards/114910: getaddrinfo() fails to set ai_canonname
Message-ID:  <200708010550.l715o6PJ008407@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR standards/114910; it has been noted by GNATS.

From: Mark Andrews <Mark_Andrews@isc.org>
To: bug-followup@FreeBSD.org, marka@isc.org
Cc:  
Subject: Re: standards/114910: getaddrinfo() fails to set ai_canonname
Date: Wed, 01 Aug 2007 15:47:42 +1000

 The problem is that getanswer() only adds ai_canonname to the first 
 element of the list.
 reorder() is then called and depending apon the order of the records 
 returned from
 the DNS the addrinfo structure without the ai_canonname set is moved to the
 start of the list.
 
 The solution is to have getanswer() set ai_canonname on ALL elements in 
 the list.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708010550.l715o6PJ008407>