summaryrefslogtreecommitdiff
path: root/sbin/ipsec/photurisd/kernel.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-14 10:37:59 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-09-14 10:37:59 +0000
commita7162cd6abe395805da2514f42bca4d6e1ebe610 (patch)
treeb30ff72fb6cfaf25232a717aa63a4a094d507fba /sbin/ipsec/photurisd/kernel.c
parent00c3d07c61eb41cfb5ef7afd46e0be87511ed671 (diff)
some -Wall
Diffstat (limited to 'sbin/ipsec/photurisd/kernel.c')
-rw-r--r--sbin/ipsec/photurisd/kernel.c4
1 files changed, 2 insertions, 2 deletions
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 <sys/param.h>
@@ -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: