1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/www/oops/files/patch-src_modules_redir.c
Pav Lucistnik 75ed07acb6 - Fix for multiple redir modules
PR:		ports/72710
Submitted by:	marck (maintainer)
Obtained from:	author
2004-10-15 12:13:38 +00:00

20 lines
481 B
C

$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 */
}