Cut-n-paste strikes again
[oweals/busybox.git] / util-linux / rdate.c
index 0b5f8e460eecb9483a257dc549917f0eff1e46d4..a73e8eebf523ea7f4415f0d9ecf87b706f040be5 100644 (file)
@@ -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", "tcp", 37);
 
        /* Add a timeout for dead or non accessable servers */
        alarm(10);