diff --git a/crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c b/crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c index f67471412889..967f7993676b 100644 --- a/crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c +++ b/crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c @@ -1,4 +1,4 @@ -/* $NetBSD: ipsec_doi.c,v 1.1.1.2 2005/02/23 14:54:16 manu Exp $ */ +/* $NetBSD: ipsec_doi.c,v 1.2 2005/04/18 11:15:01 manu Exp $ */ /* Id: ipsec_doi.c,v 1.26.2.1 2005/02/17 13:19:18 vanhu Exp */ @@ -654,7 +654,7 @@ t2isakmpsa(trns, sa) case IPSECDOI_ATTR_SA_LD_TYPE_KB: sa->lifebyte = ipsecdoi_set_ld(val); vfree(val); - if (sa->lifetime == 0) { + if (sa->lifebyte == 0) { plog(LLV_ERROR, LOCATION, NULL, "invalid life duration.\n"); goto err;