1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

- Fix for multiple redir modules

PR:		ports/72710
Submitted by:	marck (maintainer)
Obtained from:	author
This commit is contained in:
Pav Lucistnik 2004-10-15 12:13:38 +00:00
parent 8e3b0d7cfe
commit 75ed07acb6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=119500
2 changed files with 20 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= oops
PORTVERSION= ${OOPSVERSION}
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= http://oops-cache.org/
DISTNAME= ${PORTNAME}-${OOPSVERSION}

View File

@ -0,0 +1,19 @@
$FreeBSD$
--- src/modules/redir.c.orig Thu Oct 16 18:21:59 2003
+++ src/modules/redir.c Sun Oct 3 17:23:08 2004
@@ -349,11 +349,9 @@
/* if this is not on my port */
while( n ) {
- if ( mp->port == port
- && ( (mp->in_addr.s_addr == INADDR_ANY)
- ||(mp->in_addr.s_addr == rq->my_sa.sin_addr.s_addr) ) )
- break;
+ if ( mp->so == rq->accepted_so )
+ break;
n--;mp++;
}
if ( !n ) return(MOD_CODE_OK); /* not my */
}