Commit b958ac29bc629e955e2ba5681f5fc142fc521b8a
1 parent
35d791b6
Exists in
master
and in
3 other branches
Fix a bug in GetSocket function (due to a modification in get hostname)
Showing
1 changed file
with
0 additions
and
8 deletions
Show diff stats
src/DDClientLibC/DD_client.c
... | ... | @@ -126,8 +126,6 @@ int GetSocket() |
126 | 126 | char *pline; |
127 | 127 | |
128 | 128 | /*---------- Variables for network ---------------------*/ |
129 | - static struct hostent *Host; /* name & internet (32b) address for | |
130 | - remout hosts (see netdb.h) */ | |
131 | 129 | static char RemSerName[PATHLENGTH]; /* name of remote server */ |
132 | 130 | |
133 | 131 | struct servent *serv; /* pointer to static structure of |
... | ... | @@ -189,12 +187,6 @@ int GetSocket() |
189 | 187 | perror("Socket:"); return(-1); |
190 | 188 | } |
191 | 189 | |
192 | -/* Filling full internet address for socket "name" | |
193 | - * this address will be used to get communication point */ | |
194 | - | |
195 | - IntAFAddr.sin_family = Host->h_addrtype; | |
196 | - memcpy(&IntAFAddr.sin_addr.s_addr,Host->h_addr_list[0],Host->h_length); | |
197 | - | |
198 | 190 | /* Connection to server socket on remote computer */ |
199 | 191 | if(connect(SocketID,(struct sockaddr *)&IntAFAddr,AFAddrLen) < 0) |
200 | 192 | { perror("connect"); return(-1); } | ... | ... |