summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2002-02-21 20:14:13 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2002-02-21 20:14:13 +0000
commita7f4c15fc53d32513e7a3b6451a503e578c0cd6b (patch)
treeb8f533d16aae5aded56e094c2a133b68d09a1c28
parent4599c478b9a76e8b21829e54f2c5c8544b034364 (diff)
Correctly initialize the compression case.
-rw-r--r--sys/net/pfkeyv2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/pfkeyv2.c b/sys/net/pfkeyv2.c
index 7e86e416753..6d0cf322967 100644
--- a/sys/net/pfkeyv2.c
+++ b/sys/net/pfkeyv2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkeyv2.c,v 1.79 2002/01/23 01:33:07 art Exp $ */
+/* $OpenBSD: pfkeyv2.c,v 1.80 2002/02/21 20:14:12 angelos Exp $ */
/*
* @(#)COPYRIGHT 1.1 (NRL) 17 January 1995
@@ -2015,8 +2015,8 @@ pfkeyv2_acquire(struct ipsec_policy *ipo, union sockaddr_union *gw,
if (!strncasecmp(ipsec_def_comp, "deflate", sizeof("deflate")))
{
sadb_comb->sadb_comb_encrypt = SADB_X_CALG_DEFLATE;
- sadb_comb->sadb_comb_encrypt = 0;
- sadb_comb->sadb_comb_encrypt = 0;
+ sadb_comb->sadb_comb_encrypt_minbits = 0;
+ sadb_comb->sadb_comb_encrypt_maxbits = 0;
}
}