Commit 3dffbc3e authored by Simon Kelley's avatar Simon Kelley

Don't overwrite errno before generating message.

parent 0d6eb134
...@@ -630,7 +630,11 @@ static int make_sock(union mysockaddr *addr, int type, int dienow) ...@@ -630,7 +630,11 @@ static int make_sock(union mysockaddr *addr, int type, int dienow)
s = _("failed to create listening socket for %s: %s"); s = _("failed to create listening socket for %s: %s");
if (fd != -1) if (fd != -1)
close (fd); {
int errsav = errno;
close (fd);
errno = errsav;
}
if (dienow) if (dienow)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment