mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
lib9: fix local addr in dial
R=rsc CC=plan9port.codebot http://codereview.appspot.com/4826049
This commit is contained in:
parent
a3b799d9f0
commit
0c2ef23ff3
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ p9dial(char *addr, char *local, char *dummy2, int *dummy3)
|
|||
goto badlocal;
|
||||
}
|
||||
memset(&sal, 0, sizeof sal);
|
||||
memmove(&sal.sin_addr, &local, 4);
|
||||
memmove(&sal.sin_addr, &host, 4);
|
||||
sal.sin_family = AF_INET;
|
||||
sal.sin_port = htons(port);
|
||||
sn = sizeof n;
|
||||
|
|
Loading…
Reference in a new issue