Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/usr.sbin/inetd



On Tue, Oct 17, 2017 at 9:03 PM, Christos Zoulas <christos%astron.com@localhost> wrote:
> In article <20171017071319.A4380FBC8%cvs.NetBSD.org@localhost>,
> Ryota Ozaki <source-changes-d%NetBSD.org@localhost> wrote:
>>-=-=-=-=-=-
>>
>>Module Name:   src
>>Committed By:  ozaki-r
>>Date:          Tue Oct 17 07:13:19 UTC 2017
>>
>>Modified Files:
>>       src/usr.sbin/inetd: inetd.c
>>
>>Log Message:
>>Don't setup SPs if no policy sepecifier is specified
>>
>>We expect that SPs are set up iff some policy sepecifier(s) are specified.
>
> Why not just flip the order ?
>
>         if (policy != NULL && ipsecfoo(...) < 0) {
>         }

I just wanted to pull ipsecsetup out from the conditional statement.

  ozaki-r


Home | Main Index | Thread Index | Old Index