fixed some problems with the socket socket.c code.
authortridge <tridge@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Mon, 21 Nov 2005 07:23:36 +0000 (07:23 +0000)
committertridge <tridge@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Mon, 21 Nov 2005 07:23:36 +0000 (07:23 +0000)
commit9bca83ebb6af642c28019a332acb08d06a573723
treee9584ffa6d43ecd8722347d391a2acb433c5a03e
parent858bb9e7e53f2d45eff757ab316cbd9760e9399e
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

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@11820 0c0555d6-39d7-0310-84fc-f1cc0bd64818
source/lib/socket/connect.c