[packages] xinetd: update to 2.3.15 (CVE-2012-0862), use CONFIGURE_{ARGS,VARS} &...
[openwrt/svn-archive/archive.git] / net / xinetd / patches / 003-rpc_fix.patch
1 --- a/xinetd/confparse.c
2 +++ b/xinetd/confparse.c
3 @@ -745,7 +745,7 @@ static status_e check_entry( struct serv
4 }
5 }
6
7 -/* #ifndef NO_RPC */
8 +#ifndef NO_RPC
9 #if defined(HAVE_RPC_RPCENT_H) || defined(HAVE_NETDB_H)
10 if ( SC_IS_RPC( scp ) && !SC_IS_UNLISTED( scp ) )
11 {
12 @@ -759,6 +759,7 @@ static status_e check_entry( struct serv
13 SC_RPCDATA( scp )->rd_program_number = rep->r_number ;
14 }
15 else
16 +#endif
17 #endif /* ! NO_RPC */
18 {
19 if ( !SC_IS_UNLISTED( scp ) )