diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-09-18 20:28:48 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-09-18 20:28:48 +0000 |
commit | 13090390a71ead775285c1de7da41adc6062a8fd (patch) | |
tree | e2b7a2d6b7d22ee1deb7c2afc27151303024b4d1 /lib/server | |
parent | fd92c8aa8ad1b3bb7d807e4a0cbfa35f0ec8f640 (diff) |
optlen could become bigger than sizeof(info) in future and that's OK
Diffstat (limited to 'lib/server')
-rw-r--r-- | lib/server/TcpNice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/server/TcpNice.cpp b/lib/server/TcpNice.cpp index 20619e49..40e7a6b5 100644 --- a/lib/server/TcpNice.cpp +++ b/lib/server/TcpNice.cpp @@ -154,7 +154,7 @@ void NiceSocketStream::Write(const void *pBuffer, int NBytes) BOX_LOG_SYS_WARNING("getsockopt(" << socket << ", SOL_TCP, " "TCP_INFO) failed"); } - else if(optlen != sizeof(info)) + else if(optlen < sizeof(info)) { BOX_WARNING("getsockopt(" << socket << ", SOL_TCP, " "TCP_INFO) return structure size " << optlen << ", " |