From fd17f7d7d489e1b3037c3a393161639626c0a979 Mon Sep 17 00:00:00 2001 From: mbuhl Date: Sat, 25 Jun 2022 20:33:40 +0000 Subject: [PATCH] Use in_addr for AF_INET. OK bluhm --- sbin/ipsecctl/ike.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/ipsecctl/ike.c b/sbin/ipsecctl/ike.c index 5c46877461a..aef204b308f 100644 --- a/sbin/ipsecctl/ike.c +++ b/sbin/ipsecctl/ike.c @@ -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 * @@ -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); -- 2.20.1