diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2017-12-05 01:30:20 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2017-12-05 01:30:20 +0000 |
commit | 499b941405504514e411af88c5dbe9216c9e1881 (patch) | |
tree | e46f2fe164fa11eb1a1b4c6ea47ba18d59354548 /usr.bin/ssh/channels.c | |
parent | f01a51844d771cd6ace88cf64513b7ba36b7d3d6 (diff) |
include the addr:port in bind/listen failure messages
Diffstat (limited to 'usr.bin/ssh/channels.c')
-rw-r--r-- | usr.bin/ssh/channels.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.bin/ssh/channels.c b/usr.bin/ssh/channels.c index 78a85c58fc5..b8b3bb759ec 100644 --- a/usr.bin/ssh/channels.c +++ b/usr.bin/ssh/channels.c @@ -1,4 +1,4 @@ -/* $OpenBSD: channels.c,v 1.376 2017/10/25 00:15:35 djm Exp $ */ +/* $OpenBSD: channels.c,v 1.377 2017/12/05 01:30:19 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -3320,7 +3320,8 @@ channel_setup_fwd_listener_tcpip(struct ssh *ssh, int type, sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); if (sock < 0) { /* this is no error since kernel may not support ipv6 */ - verbose("socket: %.100s", strerror(errno)); + verbose("socket [%s]:%s: %.100s", ntop, strport, + strerror(errno)); continue; } @@ -3335,13 +3336,15 @@ channel_setup_fwd_listener_tcpip(struct ssh *ssh, int type, * address can be in if use ipv6 address is * already bound */ - verbose("bind: %.100s", strerror(errno)); + verbose("bind [%s]:%s: %.100s", + ntop, strport, strerror(errno)); close(sock); continue; } /* Start listening for connections on the socket. */ if (listen(sock, SSH_LISTEN_BACKLOG) < 0) { - error("listen: %.100s", strerror(errno)); + error("listen [%s]:%s: %.100s", ntop, strport, + strerror(errno)); close(sock); continue; } |