summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/net/rcmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c
index d46410a..96d5bab 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);
}
OpenPOWER on IntegriCloud