aboutsummaryrefslogtreecommitdiff
path: root/lib/libipsec/pfkey.c
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2012-02-11 11:11:43 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2012-02-11 11:11:43 +0000
commitb4549038e16e006159f5cd1df44d7281b274489c (patch)
treeeefbf622d9fc1e31eb5948103a6d54c46288db3c /lib/libipsec/pfkey.c
parenta8f77c1f66bdc9fc10539f9cee6c1231856bbd86 (diff)
downloadsrc-b4549038e16e006159f5cd1df44d7281b274489c.tar.gz
src-b4549038e16e006159f5cd1df44d7281b274489c.zip
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
Notes
Notes: svn path=/head/; revision=231515
Diffstat (limited to 'lib/libipsec/pfkey.c')
-rw-r--r--lib/libipsec/pfkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libipsec/pfkey.c b/lib/libipsec/pfkey.c
index 2dd9d7183c4d..4cd58a777247 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++) {