From 2dfd09340f208bf8d7e271d78dfb19d01a53a010 Mon Sep 17 00:00:00 2001 From: angelos Date: Fri, 28 Feb 1997 01:05:17 +0000 Subject: [PATCH] Corrected the length field. --- sbin/ipsec/pfr/pfr.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sbin/ipsec/pfr/pfr.c b/sbin/ipsec/pfr/pfr.c index 0cf54aefe19..c8e5bbae692 100644 --- a/sbin/ipsec/pfr/pfr.c +++ b/sbin/ipsec/pfr/pfr.c @@ -74,7 +74,7 @@ char **argv; em = (struct encap_msghdr *)&buf[0]; - em->em_msglen = EM_MINLEN; + em->em_msglen = EMT_IFADDR_LEN; em->em_version = 0; em->em_type = EMT_IFADDR; em->em_ifa.s_addr = inet_addr(argv[2]); @@ -82,10 +82,4 @@ char **argv; if (write(sd, buf, EMT_IFADDR_LEN) != EMT_IFADDR_LEN) perror("write"); - - - - } - - -- 2.20.1