diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2012-02-11 11:11:43 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2012-02-11 11:11:43 +0000 |
commit | b4549038e16e006159f5cd1df44d7281b274489c (patch) | |
tree | eefbf622d9fc1e31eb5948103a6d54c46288db3c | |
parent | a8f77c1f66bdc9fc10539f9cee6c1231856bbd86 (diff) | |
download | src-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
-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 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++) { |