(racoon 929) s/lifetime/lifebyte/

Satoshi Inoue <[email protected]> Thu, 14 Apr 2005 10:32:47 +0900
Newsgroups gmane.network.ipv6.kame.racoon
Message-ID <[email protected]>
Just a small fix. I haven't tested it, but it should be right.

--- ipsec_doi.c.org     Thu Apr 14 10:19:45 2005
+++ ipsec_doi.c Thu Apr 14 10:19:45 2005
@@ -621,7 +621,7 @@
                        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;

- EOF -