summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util-linux/rdate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/rdate.c b/util-linux/rdate.c
index a317cda..a73e8ee 100644
--- a/util-linux/rdate.c
+++ b/util-linux/rdate.c
@@ -51,7 +51,7 @@ static time_t askremotedate(const char *host)
int fd;
bb_lookup_host(&s_in, host);
- s_in.sin_port = bb_lookup_port("time", 37);
+ s_in.sin_port = bb_lookup_port("time", "tcp", 37);
/* Add a timeout for dead or non accessable servers */
alarm(10);