myport acl && redirector_access

From: Denis Shaposhnikov <dsh@dont-contact.us>
Date: 19 Jan 2000 16:51:41 +0300

I found bug in redirector_access with myport acl. For example

  acl NoBanner myport 8000
  redirector_access allow NoBanner

isn't working without patch:

--- src/redirect.c.orig Wed Jan 19 16:25:50 2000
+++ src/redirect.c Wed Jan 19 16:26:32 2000
@@ -108,6 +108,7 @@
         memset(&ch, '\0', sizeof(ch));
         ch.src_addr = http->conn->peer.sin_addr;
         ch.my_addr = http->conn->me.sin_addr;
+ ch.my_port = ntohs(http->conn->me.sin_port);
         ch.request = http->request;
         if (!aclCheckFast(Config.accessList.redirector, &ch)) {
             /* denied -- bypass redirector */

-- 
DSS5-RIPE DSS-RIPN 2:550/5068@fidonet 2:550/5069@fidonet
mailto:dsh@vlink.ru http://neva.vlink.ru/~dsh
Key fingerprint = 46 C8 1B 3B 15 1F 64 B0  38 0B 28 CE B0 75 7B E9
Received on Wed Jan 19 2000 - 07:07:27 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:50:30 MST