aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/rdate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/rdate.c b/util-linux/rdate.c
index 0b5f8e460..a317cda55 100644
--- a/util-linux/rdate.c
+++ b/util-linux/rdate.c
@@ -50,7 +50,8 @@ static time_t askremotedate(const char *host)
struct sockaddr_in s_in;
int fd;
- bb_lookup_host(&s_in, host, "time");
+ bb_lookup_host(&s_in, host);
+ s_in.sin_port = bb_lookup_port("time", 37);
/* Add a timeout for dead or non accessable servers */
alarm(10);