diff options
| author | Yoshinobu Inoue <shin@FreeBSD.org> | 2000-01-26 14:13:41 +0000 |
|---|---|---|
| committer | Yoshinobu Inoue <shin@FreeBSD.org> | 2000-01-26 14:13:41 +0000 |
| commit | ae42b66633602eca51aff154ecfab3cc9ad8ae02 (patch) | |
| tree | 279ddec6fe40c8b839e3ffea67ae21ed40cf20e9 /lib | |
| parent | 5d32c97ce99fd82b43b2d875d5c787961a096943 (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libc/net/rcmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c index d46410a25a01..96d5bab32e86 100644 --- a/lib/libc/net/rcmd.c +++ b/lib/libc/net/rcmd.c @@ -333,8 +333,7 @@ rresvport_af(alport, family) } #endif *sport = 0; - if (bindresvport_sa(s, (struct sockaddr *)&ss, - ((struct sockaddr *)&ss)->sa_len) == -1) { + if (bindresvport_sa(s, (struct sockaddr *)&ss) == -1) { (void)_libc_close(s); return (-1); } |
