mirror of git://anongit.mindrot.org/openssh.git
- (djm) Close listen_sock on bind() failures. Patch from Arkadiusz
Miskiewicz <misiek@pld.ORG.PL>
This commit is contained in:
parent
2deb3f64f6
commit
0a4e27d583
|
@ -5,6 +5,8 @@
|
|||
stevesk
|
||||
- (djm) Fix my breaking of cygwin builds, Patch from Corinna Vinschen
|
||||
<vinschen@redhat.com> and myself.
|
||||
- (djm) Close listen_sock on bind() failures. Patch from Arkadiusz
|
||||
Miskiewicz <misiek@pld.ORG.PL>
|
||||
|
||||
20010217
|
||||
- (bal) OpenBSD Sync:
|
||||
|
@ -4012,4 +4014,4 @@
|
|||
- Wrote replacements for strlcpy and mkdtemp
|
||||
- Released 1.0pre1
|
||||
|
||||
$Id: ChangeLog,v 1.785 2001/02/18 01:30:55 djm Exp $
|
||||
$Id: ChangeLog,v 1.786 2001/02/18 01:36:39 djm Exp $
|
||||
|
|
4
sshd.c
4
sshd.c
|
@ -849,8 +849,8 @@ main(int ac, char **av)
|
|||
debug("Bind to port %s on %s.", strport, ntop);
|
||||
|
||||
/* Bind the socket to the desired port. */
|
||||
if ((bind(listen_sock, ai->ai_addr, ai->ai_addrlen) < 0) &&
|
||||
(!ai->ai_next)) {
|
||||
if (bind(listen_sock, ai->ai_addr, ai->ai_addrlen) < 0) {
|
||||
if (!ai->ai_next)
|
||||
error("Bind to port %s on %s failed: %.200s.",
|
||||
strport, ntop, strerror(errno));
|
||||
close(listen_sock);
|
||||
|
|
Loading…
Reference in New Issue