Explorar o código

* Fix source port comparison

Bryan Drewery %!s(int64=14) %!d(string=hai) anos
pai
achega
fea9e4ffa3
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  1. 1 5
      src/dcc.c

+ 1 - 5
src/dcc.c

@@ -1419,11 +1419,7 @@ dcc_telnet(int idx, char *buf, int ii)
     return;
   }
 
-#if SIZEOF_SHORT == 2
-  if (port < 1024) {
-#else
-  if (port < 1024 || port > 65535) {
-#endif
+  if (port < 1024 || port > 65534) {
     putlog(LOG_BOTS, "*", "Refused %s/%d (bad src port)", s, port);
     killsock(sock);
     return;