From a7162cd6abe395805da2514f42bca4d6e1ebe610 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 14 Sep 1997 10:37:59 +0000 Subject: some -Wall --- sbin/ipsec/photurisd/kernel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/ipsec/photurisd/kernel.c') diff --git a/sbin/ipsec/photurisd/kernel.c b/sbin/ipsec/photurisd/kernel.c index 4ac77a8b703..09d33c7116b 100644 --- a/sbin/ipsec/photurisd/kernel.c +++ b/sbin/ipsec/photurisd/kernel.c @@ -29,7 +29,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: kernel.c,v 1.3 1997/07/26 20:55:16 provos Exp $"; +static char rcsid[] = "$Id: kernel.c,v 1.4 1997/09/14 10:37:51 deraadt Exp $"; #endif #include @@ -115,7 +115,7 @@ kernel_reserve_spi(char *srcaddress, int options) u_int32_t spi; int proto; - if (options & (IPSEC_OPT_ENC|IPSEC_OPT_AUTH) != + if ((options & (IPSEC_OPT_ENC|IPSEC_OPT_AUTH)) != (IPSEC_OPT_ENC|IPSEC_OPT_AUTH)) { switch(options & (IPSEC_OPT_ENC|IPSEC_OPT_AUTH)) { case IPSEC_OPT_ENC: -- cgit v1.2.3