Displaying 1 result from an estimated 1 matches for "errgai".
Did you mean:
errbar
2000 Apr 11
0
DNS lookup
...openssh stores two times the same key in the ssh_known_keys file.
Is this intended? If so, why?
After looking through the code I found this function call in ssh.c:
/* Find canonic host name. */
if (strchr(host, '.') == 0) {
struct addrinfo hints;
struct addrinfo *ai = NULL;
int errgai;
memset(&hints, 0, sizeof(hints));
hints.ai_family = IPv4or6;
hints.ai_flags = AI_CANONNAME;
hints.ai_socktype = SOCK_STREAM;
errgai = getaddrinfo(host, NULL, &hints, &ai);
if (errgai == 0) {
if (ai->ai_canonname != NULL)
host = xstrdup(ai->ai_canonname);
fre...