Fix crash in socket table parsing on windows by sinclairjw · Pull Request #8419 · osquery/osquery

The socket tables are allocated in the constructor for WinSockets, but any failure to allocate is not subsequently checked before using the tables in the parsing routine. This was causing a crash in (possibly temporary) low-memory scenarios.

The fix is to simply check the tables are not null before using them. The fix is to the only location in the code where the tables are referenced.