mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Don't overwrite errno before generating message.
This commit is contained in:
@@ -630,7 +630,11 @@ static int make_sock(union mysockaddr *addr, int type, int dienow)
|
||||
s = _("failed to create listening socket for %s: %s");
|
||||
|
||||
if (fd != -1)
|
||||
close (fd);
|
||||
{
|
||||
int errsav = errno;
|
||||
close (fd);
|
||||
errno = errsav;
|
||||
}
|
||||
|
||||
if (dienow)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user