plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 0c2ef23ff3d400d5e18eebeec2113cf81c5fb269
parent a3b799d9f0f0c3be1f46fe6d735262c530e86973
Author: Jani Lahtinen <jani.lahtinen8@gmail.com>
Date:   Tue, 16 Aug 2011 14:02:11 -0400

lib9: fix local addr in dial

R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/4826049

Diffstat:
Msrc/lib9/dial.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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;