1
Vote

GetNTPTime() needs to validate that data was actually received before using the ntpData buffer

description

Currently, there's no checks ensuring that valid data was received.
This is important if/when timeouts are used on socket operations.

comments

misenhower wrote May 5, 2011 at 7:16 PM

If a timeout occurs, a socket exception is thrown. It would probably be a good idea to make sure valid data was received though, so I'll take a look at that at some point. If you have any suggestions, let me know.

wrote Feb 13, 2013 at 4:48 AM