Corrected the length field.
authorangelos <angelos@openbsd.org>
Fri, 28 Feb 1997 01:05:17 +0000 (01:05 +0000)
committerangelos <angelos@openbsd.org>
Fri, 28 Feb 1997 01:05:17 +0000 (01:05 +0000)
sbin/ipsec/pfr/pfr.c

index 0cf54ae..c8e5bba 100644 (file)
@@ -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");
-       
-       
-       
-
 }
-
-