Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2007-05-20 14:10:40 UTC

Modified files:
  Tag: u2_10_12_branch
     ircd/listener.c ChangeLog

Log message:

Fix SF#1704419 by properly hiding hidden ports.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.187 ircu2.10/ChangeLog:1.710.2.188
--- ircu2.10/ChangeLog:1.710.2.187      Sun May 20 07:01:07 2007
+++ ircu2.10/ChangeLog  Sun May 20 07:10:30 2007
@@ -1,5 +1,10 @@
 2007-05-20  Michael Poole <[EMAIL PROTECTED]>
 
+       * ircd/listener.c (show_ports): Actually hide hidden ports from
+       clients that should not see them.
+
+2007-05-20  Michael Poole <[EMAIL PROTECTED]>
+
        * ircd/s_err.c (ERR_DONTCHEAT): Add apparently missing %s.
        
 2007-05-20  Michael Poole <[EMAIL PROTECTED]>
Index: ircu2.10/ircd/listener.c
diff -u ircu2.10/ircd/listener.c:1.28.2.5 ircu2.10/ircd/listener.c:1.28.2.6
--- ircu2.10/ircd/listener.c:1.28.2.5   Sat Mar 17 19:33:01 2007
+++ ircu2.10/ircd/listener.c    Sun May 20 07:10:30 2007
@@ -18,7 +18,7 @@
  */
 /** @file
  * @brief Implementation for handling listening sockets.
- * @version $Id: listener.c,v 1.28.2.5 2007/03/18 02:33:01 entrope Exp $
+ * @version $Id: listener.c,v 1.28.2.6 2007/05/20 14:10:30 entrope Exp $
  */
 #include "config.h"
 
@@ -147,8 +147,12 @@
       continue;
     len = 0;
     flags[len++] = listener_server(listener) ? 'S' : 'C';
-    if (show_hidden && FlagHas(&listener->flags, LISTEN_HIDDEN))
+    if (FlagHas(&listener->flags, LISTEN_HIDDEN))
+    {
+      if (!show_hidden)
+        continue;
       flags[len++] = 'H';
+    }
     if (FlagHas(&listener->flags, LISTEN_IPV4))
     {
       flags[len++] = '4';
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to