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:
parent
8e3b0d7cfe
commit
75ed07acb6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=119500
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= oops
|
||||
PORTVERSION= ${OOPSVERSION}
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://oops-cache.org/
|
||||
DISTNAME= ${PORTNAME}-${OOPSVERSION}
|
||||
|
19
www/oops/files/patch-src_modules_redir.c
Normal file
19
www/oops/files/patch-src_modules_redir.c
Normal 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 */
|
||||
}
|
Loading…
Reference in New Issue
Block a user