diff options
author | mbuhl <mbuhl@cvs.openbsd.org> | 2022-06-25 20:33:41 +0000 |
---|---|---|
committer | mbuhl <mbuhl@cvs.openbsd.org> | 2022-06-25 20:33:41 +0000 |
commit | bb7a3d2ab45346096b02f5103620ce7809fafb49 (patch) | |
tree | 17e79f00c3d20e61acda7cbf838c9f1f767e4199 | |
parent | 51ffaca60f091de4835ea34dc56f3fe9e2246312 (diff) |
Use in_addr for AF_INET.
OK bluhm
-rw-r--r-- | sbin/ipsecctl/ike.c | 4 |
1 files 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 <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); |