recommit of lost change - SIGSEGV on poll() with socfd == -1

This commit is contained in:
Marian Krivos 2009-05-28 11:19:59 +00:00
parent c76ec8b854
commit 08f24cb0a4

View File

@ -347,6 +347,10 @@ int SocketImpl::available()
bool SocketImpl::poll(const Poco::Timespan& timeout, int mode)
{
// Marian Krivos - 28.05.2009
// crash fix: SIGSEGV on linux when _sockfd == -1
poco_assert (_sockfd != POCO_INVALID_SOCKET);
#if defined(POCO_HAVE_FD_POLL)
pollfd pollBuf;