mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-17 00:22:59 +00:00
Remove extraneous copy into destination sin_addr from a hostent structure when
value may already have been set up, and hostent may be uninitialized. modified: src/inet.c
This commit is contained in:
parent
9529248faa
commit
a0500627a1
@ -164,7 +164,6 @@ LispPTR subr_TCP_ops(int op, LispPTR nameConn, LispPTR proto, LispPTR length, Li
|
||||
sock = LispNumToCInt(proto);
|
||||
result = socket(AF_INET, SOCK_STREAM, 0);
|
||||
farend.sin_family = AF_INET;
|
||||
ToMem((char *)&farend.sin_addr, (char *)host->h_addr, host->h_length);
|
||||
farend.sin_port = sock;
|
||||
if (connect(result, (struct sockaddr *)&farend, sizeof farend) < 0) {
|
||||
perror("TCP connect");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user