]> git.pld-linux.org Git - packages/openssh.git/commitdiff
security bug
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 6 Jan 2001 19:41:52 +0000 (19:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    openssh-securityfix.patch -> 1.1

openssh-securityfix.patch [new file with mode: 0644]

diff --git a/openssh-securityfix.patch b/openssh-securityfix.patch
new file mode 100644 (file)
index 0000000..0b933f4
--- /dev/null
@@ -0,0 +1,18 @@
+diff -urN openssh-2.3.0p1.org/sshd.c openssh-2.3.0p1/sshd.c
+--- openssh-2.3.0p1.org/sshd.c Sat Jan  6 19:54:11 2001
++++ openssh-2.3.0p1/sshd.c     Sat Jan  6 19:55:48 2001
+@@ -782,10 +782,10 @@
+                       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)) {
+-                              error("Bind to port %s on %s failed: %.200s.",
+-                                  strport, ntop, strerror(errno));
++                      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);
+                               continue;
+                       }
This page took 0.341404 seconds and 4 git commands to generate.