diff options
author | Jani Lahtinen <jani.lahtinen8@gmail.com> | 2011-08-16 14:02:11 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2011-08-16 14:02:11 -0400 |
commit | 0c2ef23ff3d400d5e18eebeec2113cf81c5fb269 (patch) | |
tree | e7f4417721e972ade839e4159d08b4a15e52c74d /src/lib9 | |
parent | a3b799d9f0f0c3be1f46fe6d735262c530e86973 (diff) | |
download | plan9port-0c2ef23ff3d400d5e18eebeec2113cf81c5fb269.tar.gz plan9port-0c2ef23ff3d400d5e18eebeec2113cf81c5fb269.tar.bz2 plan9port-0c2ef23ff3d400d5e18eebeec2113cf81c5fb269.zip |
lib9: fix local addr in dial
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/4826049
Diffstat (limited to 'src/lib9')
-rw-r--r-- | src/lib9/dial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib9/dial.c b/src/lib9/dial.c index 08cd99b6..7c7f7480 100644 --- a/src/lib9/dial.c +++ b/src/lib9/dial.c @@ -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; |