summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>1999-02-25 00:02:28 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>1999-02-25 00:02:28 +0000
commit69d8375caca424d3034523252e0cd4f701173bfb (patch)
tree2173ba0bc0b2ae7d4dd99e90755f9c41310c4db8 /sbin
parented4e748d8ec3f0468fbc0a37663d90abb09f5505 (diff)
Fix bug that didn't allow use of sha1/md5.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ipsecadm/ipsecadm.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/sbin/ipsecadm/ipsecadm.c b/sbin/ipsecadm/ipsecadm.c
index f87ad0d5a66..fd5ec3badbb 100644
--- a/sbin/ipsecadm/ipsecadm.c
+++ b/sbin/ipsecadm/ipsecadm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipsecadm.c,v 1.6 1999/02/24 23:47:18 angelos Exp $ */
+/* $OpenBSD: ipsecadm.c,v 1.7 1999/02/25 00:02:27 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -141,14 +141,10 @@ isvalid(char *option, int type, int mode)
int i;
for (i = sizeof(xf) / sizeof(transform) - 1; i >= 0; i--)
- if (!strcmp(option, xf[i].name))
- {
- if ((xf[i].flags & CMD_MASK) == type &&
- (xf[i].flags & mode))
- return xf[i].id;
- else
- return 0;
- }
+ if (!strcmp(option, xf[i].name) &&
+ (xf[i].flags & CMD_MASK) == type &&
+ (xf[i].flags & mode))
+ return xf[i].id;
return 0;
}