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)
commit61e1eea0fdb13577de2506472c5443ee92656263
tree3feb287f580bb099166715c6fa0ae8c58ffca39b
parent87f88aaceeacf57b4a8a31e005894cbff4a21779
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")
source/lib/socket_wrapper/socket_wrapper.c