Fix SA lifebyte check

This commit is contained in:
manu 2005-04-18 11:15:01 +00:00
parent 7224809d57
commit d3e5d568cd
1 changed files with 2 additions and 2 deletions

View File

@ -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;