From: angelos Date: Fri, 28 Feb 1997 01:05:17 +0000 (+0000) Subject: Corrected the length field. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2dfd09340f208bf8d7e271d78dfb19d01a53a010;p=openbsd Corrected the length field. --- 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"); - - - - } - -