diff options
| author | Yoshinobu Inoue <shin@FreeBSD.org> | 2000-01-28 20:02:02 +0000 |
|---|---|---|
| committer | Yoshinobu Inoue <shin@FreeBSD.org> | 2000-01-28 20:02:02 +0000 |
| commit | 1f2ba8fcb7f1136dd0e309c982b56df9a298d9cc (patch) | |
| tree | 5c6177cadcf3e9a7664242c1c040e14fbf1f9450 | |
| parent | 208b5822011b66b1bb7c645c9c9b989c34bcdf30 (diff) | |
Notes
| -rw-r--r-- | libexec/rshd/rshd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rshd/rshd.c b/libexec/rshd/rshd.c index 54fa4a69d0fa..e5e07a474b56 100644 --- a/libexec/rshd/rshd.c +++ b/libexec/rshd/rshd.c @@ -320,7 +320,7 @@ doit(fromp) exit(1); } fromp->su_port = htons(port); - if (connect(s, (struct sockaddr *)fromp, sizeof (*fromp)) < 0) { + if (connect(s, (struct sockaddr *)fromp, fromp->su_len) < 0) { syslog(LOG_INFO, "connect second port %d: %m", port); exit(1); } |
