diff options
author | bz <bz@FreeBSD.org> | 2012-02-11 11:11:43 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2012-02-11 11:11:43 +0000 |
commit | 97ccc39efb5bec165ab7a0615abbae9e1494fde1 (patch) | |
tree | eefbf622d9fc1e31eb5948103a6d54c46288db3c /lib/libipsec | |
parent | aa3326a5354b16c7d109738ad8a4d534127d79b9 (diff) | |
download | FreeBSD-src-97ccc39efb5bec165ab7a0615abbae9e1494fde1.zip FreeBSD-src-97ccc39efb5bec165ab7a0615abbae9e1494fde1.tar.gz |
Use the correct constant (with same value) for comparying the SA type.
PR: kern/142741
Submitted by: Matthijs Kooiman (matthijs stdin.nl)
MFC after: 3 days
Diffstat (limited to 'lib/libipsec')
-rw-r--r-- | lib/libipsec/pfkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libipsec/pfkey.c b/lib/libipsec/pfkey.c index 2dd9d71..4cd58a7 100644 --- a/lib/libipsec/pfkey.c +++ b/lib/libipsec/pfkey.c @@ -662,7 +662,7 @@ pfkey_send_register(so, satype) { int len, algno; - if (satype == PF_UNSPEC) { + if (satype == SADB_SATYPE_UNSPEC) { for (algno = 0; algno < sizeof(supported_map)/sizeof(supported_map[0]); algno++) { |