summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvenaas <venaas>2009-02-27 14:11:45 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2009-02-27 14:11:45 +0000
commita8964b0ee99dad576a60540a2472598b65c86eef (patch)
tree6811de27ee8427eb4d2a16298549495edf42a0b5
parent5db9da3267c05f184cdae8035c13a50a85de39e2 (diff)
fixed addr_copy function for bsd
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@485 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r--util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util.c b/util.c
index ca16d41..be304cb 100644
--- a/util.c
+++ b/util.c
@@ -75,6 +75,9 @@ struct sockaddr *addr_copy(struct sockaddr *in) {
break;
}
out->sa_family = in->sa_family;
+#ifdef SIN6_LEN
+ out->sa_len = in->sa_len;
+#endif
return out;
}