Improve valid() in netlm, nethalflm and mssql12.
Merge branch 'bleeding-jumbo' into memdbg

* bleeding-jumbo:
  Improve valid() in netlm, nethalflm and mssql12.