From 97ccc39efb5bec165ab7a0615abbae9e1494fde1 Mon Sep 17 00:00:00 2001 From: bz Date: Sat, 11 Feb 2012 11:11:43 +0000 Subject: 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 --- lib/libipsec/pfkey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libipsec') 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++) { -- cgit v1.1