bind: Fix ssh_bind_listen in normal case.
Этот коммит содержится в:
родитель
1fcddebadc
Коммит
d8d9755b7d
11
src/bind.c
11
src/bind.c
@ -204,11 +204,12 @@ int ssh_bind_listen(ssh_bind sshbind) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
host = sshbind->bindaddr;
|
if (sshbind->bindfd == SSH_INVALID_SOCKET) {
|
||||||
if (host == NULL) {
|
host = sshbind->bindaddr;
|
||||||
host = "0.0.0.0";
|
if (host == NULL) {
|
||||||
}
|
host = "0.0.0.0";
|
||||||
if (sshbind->bindfd != SSH_INVALID_SOCKET){
|
}
|
||||||
|
|
||||||
fd = bind_socket(sshbind, host, sshbind->bindport);
|
fd = bind_socket(sshbind, host, sshbind->bindport);
|
||||||
if (fd == SSH_INVALID_SOCKET) {
|
if (fd == SSH_INVALID_SOCKET) {
|
||||||
ssh_key_free(sshbind->dsa);
|
ssh_key_free(sshbind->dsa);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user