From fa8941eaa0484d62aaf6d0706c5a58c8578c01f0 Mon Sep 17 00:00:00 2001 From: bz Date: Wed, 15 Feb 2012 09:32:20 +0000 Subject: [PATCH] MFC r231515: Use the correct constant (with same value) for comparying the SA type. PR: kern/142741 Submitted by: Matthijs Kooiman (matthijs stdin.nl) git-svn-id: svn://svn.freebsd.org/base/stable/9@231746 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- lib/libipsec/pfkey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libipsec/pfkey.c b/lib/libipsec/pfkey.c index 2dd9d7183..4cd58a777 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++) { -- 2.45.0