summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libc/net/rcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c
index d211f404a2b..e2b91994920 100644
--- a/lib/libc/net/rcmd.c
+++ b/lib/libc/net/rcmd.c
@@ -119,7 +119,7 @@ rcmd_af(char **ahost, int porta, const char *locuser, const char *remuser,
refused = 0;
sigemptyset(&mask);
sigaddset(&mask, SIGURG);
- oldmask = sigprocmask(SIG_BLOCK, &mask, &oldmask);
+ sigprocmask(SIG_BLOCK, &mask, &oldmask);
for (timo = 1, lport = IPPORT_RESERVED - 1;;) {
s = rresvport_af(&lport, r->ai_family);
if (s < 0) {