Use in_addr for AF_INET.
authormbuhl <mbuhl@openbsd.org>
Sat, 25 Jun 2022 20:33:40 +0000 (20:33 +0000)
committermbuhl <mbuhl@openbsd.org>
Sat, 25 Jun 2022 20:33:40 +0000 (20:33 +0000)
OK bluhm

sbin/ipsecctl/ike.c

index 5c46877..aef204b 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: ike.c,v 1.82 2017/10/27 08:29:32 mpi Exp $    */
+/*     $OpenBSD: ike.c,v 1.83 2022/06/25 20:33:40 mbuhl Exp $  */
 /*
  * Copyright (c) 2005 Hans-Joerg Hoexer <hshoexer@openbsd.org>
  *
@@ -646,7 +646,7 @@ ike_section_p2ids_net(struct ipsec_addr *iamask, sa_family_t af, char *name,
                sa->sa_len = sizeof(struct sockaddr_in);
                bcopy(&iamask->ipa,
                    &((struct sockaddr_in *)(sa))->sin_addr,
-                   sizeof(struct in6_addr));
+                   sizeof(struct in_addr));
                break;
        case AF_INET6:
                sa->sa_len = sizeof(struct sockaddr_in6);