From: Sam Leffler Date: Mon, 15 Nov 1982 17:23:55 +0000 (-0800) Subject: using wrong port for fd 2 X-Git-Tag: BSD-4_1c_2-Snapshot-Development~1812 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/e23c0837a297dff62dc9474097b7effb9506b91d using wrong port for fd 2 SCCS-vsn: libexec/rshd/rshd.c 4.4 --- diff --git a/usr/src/libexec/rshd/rshd.c b/usr/src/libexec/rshd/rshd.c index 007116e248..b2d7849177 100644 --- a/usr/src/libexec/rshd/rshd.c +++ b/usr/src/libexec/rshd/rshd.c @@ -1,5 +1,5 @@ #ifndef lint -static char sccsid[] = "@(#)rshd.c 4.3 82/11/14"; +static char sccsid[] = "@(#)rshd.c 4.4 82/11/15"; #endif #include @@ -157,7 +157,7 @@ doit(f, fromp) if (port >= IPPORT_RESERVED) goto protofail; (void) alarm(60); - fromp->sin_port = htons((u_short)fromp->sin_port); + fromp->sin_port = htons((u_short)port); if (connect(s, fromp, sizeof (*fromp), 0) < 0) exit(1); (void) alarm(0);