mirror of
http://galexander.org/git/simplesshd.git
synced 2025-01-30 08:51:32 +00:00
give a warning and "unknown<af>.unknown" if we fail to get a string for
an address, instead of a fatal error
This commit is contained in:
parent
1019862157
commit
c312fa52a3
@ -698,7 +698,9 @@ void getaddrstring(struct sockaddr_storage* addr,
|
||||
return;
|
||||
} else {
|
||||
/* if we can't do a numeric lookup, something's gone terribly wrong */
|
||||
dropbear_exit("Failed lookup: %s", gai_strerror(ret));
|
||||
dropbear_log(LOG_WARNING, "Failed lookup: %s", gai_strerror(ret));
|
||||
sprintf(host, "unknown%u", ((struct sockaddr *)addr)->sa_family);
|
||||
strcpy(serv, "unknown");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user