lib9: fix local addr in dial

R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/4826049
This commit is contained in:
Jani Lahtinen 2011-08-16 14:02:11 -04:00 committed by Russ Cox
parent a3b799d9f0
commit 0c2ef23ff3

View file

@ -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;