summaryrefslogtreecommitdiff
path: root/sbin/ipsec
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>1997-02-28 01:05:18 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>1997-02-28 01:05:18 +0000
commit70da0da0a3a7247df69ca19bedba4da4cdc36f3b (patch)
tree28a274b9c45275b48be1c1c454f4a341f25acc7f /sbin/ipsec
parent3ddd240ed417057d8aa453f1d17481c8c0edaa48 (diff)
Corrected the length field.
Diffstat (limited to 'sbin/ipsec')
-rw-r--r--sbin/ipsec/pfr/pfr.c8
1 files changed, 1 insertions, 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");
-
-
-
-
}
-
-