[Bug 1889] bug in packet.c sometimes cause segfault
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Fri Dec 20 19:54:38 EST 2013
https://bugzilla.mindrot.org/show_bug.cgi?id=1889
Alexander Zaytsev <thebestzorro at yandex.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Version|5.8p1 |6.2p1
Resolution|WONTFIX |---
--- Comment #16 from Alexander Zaytsev <thebestzorro at yandex.ru> ---
Hi, I have this problem in following case:
- sshd config file contains a line:
ListenAddress 0.0.0.0
- after that this record was changed (this host has 3 DNS records):
ListenAddress 192.168.0.101
ListenAddress 192.168.0.102
ListenAddress 192.168.0.103
- a restart of sshd prints in syslog:
error: Bind to port 22 on 192.168.0.101 failed: Address already in
use.
error: Bind to port 22 on 192.168.0.102 failed: Address already in
use.
error: Bind to port 22 on 192.168.0.103 failed: Address already in
use.
- method packet_set_connection() is not called, the code of
server_listen() detects true condition "if (!num_listen_socks)", but
method packet_connection_is_on_socket() from packet.c tries to use
incorrect operation: if (active_state->connection_in ==
active_state->connection_out)
I don't know why ports are not available for bind, restart script use
"start" and "stop" calls with a delay 2 seconds. It is a quite rare
case, I have a reproduction ~5% only on OS starting. The proposed patch
resolves this problem.
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
More information about the openssh-bugs
mailing list