summaryrefslogtreecommitdiffstats
path: root/crypto/bio
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/bio')
-rw-r--r--crypto/bio/bio_addr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bio/bio_addr.c b/crypto/bio/bio_addr.c
index b9027e684b..747777a5ab 100644
--- a/crypto/bio/bio_addr.c
+++ b/crypto/bio/bio_addr.c
@@ -74,7 +74,7 @@ BIO_ADDR *BIO_ADDR_dup(const BIO_ADDR *ap)
if (ap != NULL) {
ret = BIO_ADDR_new();
if (ret != NULL)
- memcpy(ret, ap, sizeof(BIO_ADDR));
+ BIO_ADDR_make(ret, &ap->sa);
}
return ret;
}