summaryrefslogtreecommitdiff
path: root/sys/netinet/ipsec_output.c
diff options
context:
space:
mode:
authorDavid Hill <dhill@cvs.openbsd.org>2017-04-06 14:25:19 +0000
committerDavid Hill <dhill@cvs.openbsd.org>2017-04-06 14:25:19 +0000
commit0556aba597286b6457464caacee2c35959748225 (patch)
treebce599c32d915775dd3e5510205d99d5a6c3e617 /sys/netinet/ipsec_output.c
parent23eebe641a844f0dcdcb4d79192f1a21234f4bb3 (diff)
Replace bcopy with a simple assignment where both variables are
properly aligned and sockaddr_union fields, or with memcpy when the memory doesn't overlap. OK bluhm@
Diffstat (limited to 'sys/netinet/ipsec_output.c')
-rw-r--r--sys/netinet/ipsec_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ipsec_output.c b/sys/netinet/ipsec_output.c
index 84b7c53986c..686f55c5ae4 100644
--- a/sys/netinet/ipsec_output.c
+++ b/sys/netinet/ipsec_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipsec_output.c,v 1.65 2017/01/20 04:22:58 mpi Exp $ */
+/* $OpenBSD: ipsec_output.c,v 1.66 2017/04/06 14:25:18 dhill Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
*
@@ -466,7 +466,7 @@ ipsp_process_done(struct mbuf *m, struct tdb *tdb)
}
tdbi = (struct tdb_ident *)(mtag + 1);
- bcopy(&tdb->tdb_dst, &tdbi->dst, sizeof(union sockaddr_union));
+ tdbi->dst = tdb->tdb_dst;
tdbi->proto = tdb->tdb_sproto;
tdbi->spi = tdb->tdb_spi;
tdbi->rdomain = tdb->tdb_rdomain;