Kaydet (Commit) ae4a27bd authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

coverity#705404: Argument cannot be negative

Change-Id: I235a5323ee0fd60aee03c691c0c7fdf6e6e4c08b
üst dc563d3a
......@@ -1446,7 +1446,8 @@ void SAL_CALL osl_closeSocket(oslSocket pSocket)
{
OSL_TRACE("socket call failed with error: %s", strerror(errno));
}
else
{
nRet = connect(nConnFD, &s.aSockAddr, sizeof(s.aSockAddr));
if ( nRet < 0 )
{
......@@ -1454,6 +1455,7 @@ void SAL_CALL osl_closeSocket(oslSocket pSocket)
}
close(nConnFD);
}
}
pSocket->m_bIsAccepting = sal_False;
}
#endif /* LINUX */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment