r11820: fixed some problems with the socket socket.c code.
authorAndrew Tridgell <tridge@samba.org>
Mon, 21 Nov 2005 07:23:36 +0000 (07:23 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:46:33 +0000 (13:46 -0500)
commit37279b1363db5d02d48e56b6a8b16e4b70180b2a
treeb49859e20b68f619e072f25a95fe10abc903bc0a
parent11e9b40f13063e036162d6ccf81056ccceaf4598
r11820: fixed some problems with the socket socket.c code.

 - removed the duplicate calls to socket_connect(), instead creating a
   common function socket_send_connect() used by both code paths

 - fixed some NULL ptr checks (probably was cut-and-paste bugs)

 - ensure we use the result of the name resolution

 - added a few comments

 - use 'fde' for the file description event. The variable name
  'connect_ev' immediately made me think of an event context, not a
  fde. Using common variable name conventions makes code a bit easier
  to read
(This used to be commit 37b73521b4c858c78013279daaa71352c704551d)
source4/lib/socket/connect.c