Merge changes I1d36c13e,Ia8d00990

* changes:
  Don't crash when passing null destinations to bind, connect, and sendto
  Add tests for passing null to bind, sendto and connect.