r6150: fixed a few socket_wrapper bugs.
authorAndrew Tridgell <tridge@samba.org>
Thu, 31 Mar 2005 12:40:12 +0000 (12:40 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:11:22 +0000 (13:11 -0500)
commit4b96d831479f31ae6e0f2039f4b91c1bed643bea
tree9c776c24148a81d39f41440e8b4bf724eaca049d
parentbc345db961ecbec8a47550b3a224f2c6d92e2598
r6150: fixed a few socket_wrapper bugs.

  - now works properly with UDP, so the NBT tests work
  - fixed byte order in a few places
  - connect() now fails to non-localhost
  - fixed some places that tested for < 0, which should be == -1 (most syscalls
    return -1 on error, not "negative")
(This used to be commit 61e1eea0fdb13577de2506472c5443ee92656263)
source4/lib/socket_wrapper/socket_wrapper.c