]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Remove duplicate error on error path.
authorDarren Tucker <dtucker@dtucker.net>
Sat, 3 Jul 2021 10:34:19 +0000 (20:34 +1000)
committerDarren Tucker <dtucker@dtucker.net>
Sat, 3 Jul 2021 10:34:19 +0000 (20:34 +1000)
There's an extra error() call on the listen error path, it looks like
its removal was missed during an upstream sync.

channels.c

index a0163be7b8dee19b506ff033d5d9bc0e4ca85bfa..fd72f371df9807448177b3fa7be88f766a39443b 100644 (file)
@@ -3448,7 +3448,6 @@ channel_setup_fwd_listener_tcpip(struct ssh *ssh, int type,
                }
                /* Start listening for connections on the socket. */
                if (listen(sock, SSH_LISTEN_BACKLOG) == -1) {
-                       error("listen: %.100s", strerror(errno));
                        error("listen [%s]:%s: %.100s", ntop, strport,
                            strerror(errno));
                        close(sock);