mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Fixing crashes when SSL is not configured correctly.
This commit is contained in:
parent
4854ff60e5
commit
7f4e13248d
1 changed files with 3 additions and 4 deletions
|
@ -3263,8 +3263,7 @@ bool SocketComm::ProcessConnectTo()
|
|||
peer->retry = ntohl(args[3]);
|
||||
peer->ssl = ntohl(args[4]);
|
||||
|
||||
Connect(peer);
|
||||
return true;
|
||||
return Connect(peer);
|
||||
}
|
||||
|
||||
bool SocketComm::ProcessListen()
|
||||
|
@ -3502,7 +3501,7 @@ bool SocketComm::Connect(Peer* peer)
|
|||
if ( ! peer->io->Init() )
|
||||
{
|
||||
Error(fmt("can't init peer io: %s",
|
||||
peer->io->Error()), peer);
|
||||
peer->io->Error()), false);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -3636,7 +3635,7 @@ bool SocketComm::AcceptConnection(int fd)
|
|||
if ( ! peer->io->Init() )
|
||||
{
|
||||
Error(fmt("can't init peer io: %s",
|
||||
peer->io->Error()), peer);
|
||||
peer->io->Error()), false);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue