[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#5251) getaddrinfo might return duplicate results

Full_Name: Ralf Haferkamp
Version: All
OS: Linux, glibc 2.7
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

Newer versions of glibc (2.7) in my case might return duplicate addrinfo structs
in the results under certain circumstances. According to the friendly glibc
maintainer ;) this is not a bug:
Unfortunately he doesn't give a reason for this change in behavior. 

BTW, I didn't find any reference in the related RFCs that state that the
getaddrinfo results need to be unique (nor the opposite).
In my current builds I simply patched slapd to check the getaddrinfo() results
for uniqueness in the slap_get_listner_addresses() function. Has anybody a
better idea how to fix this?