diff options
author | 2004-05-23 08:48:03 +0000 | |
---|---|---|
committer | 2004-05-23 08:48:03 +0000 | |
commit | 85980629828a67a76968fe0f8ca2c7b2582609a5 (patch) | |
tree | eebc9d65d45e2faa9df8c422595a663eeb47d3b9 | |
parent | do not free before going to exit path; andrushock@korovino.net (diff) | |
download | wireguard-openbsd-85980629828a67a76968fe0f8ca2c7b2582609a5.tar.xz wireguard-openbsd-85980629828a67a76968fe0f8ca2c7b2582609a5.zip |
unbreak ipcomp; report davidkrause; ok hshoexer@
-rw-r--r-- | sbin/ipsecadm/ipsecadm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/ipsecadm/ipsecadm.c b/sbin/ipsecadm/ipsecadm.c index 0b0df232370..2bb58494316 100644 --- a/sbin/ipsecadm/ipsecadm.c +++ b/sbin/ipsecadm/ipsecadm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsecadm.c,v 1.77 2004/05/14 20:29:52 ish Exp $ */ +/* $OpenBSD: ipsecadm.c,v 1.78 2004/05/23 08:48:03 markus Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -89,6 +89,7 @@ #define ENC_IP 0x4000 #define CMD_MASK 0xff00 +#define XFORM_MASK 0x0f00 #define isencauth(x) ((x)&~CMD_MASK) #define iscmd(x,y) (((x) & CMD_MASK) == (y)) @@ -265,7 +266,7 @@ isvalid(char *option, int type, int mode) for (i = sizeof(xf) / sizeof(transform) - 1; i >= 0; i--) if (!strcmp(option, xf[i].name) && - (xf[i].flags & CMD_MASK) == type && + (xf[i].flags & XFORM_MASK) == type && (xf[i].flags & mode)) { goto gotit; } |