From 990aada420a31585b609fc2cff4f8734dd516c96 Mon Sep 17 00:00:00 2001 From: venaas Date: Fri, 27 Feb 2009 14:11:45 +0000 Subject: fixed addr_copy function for bsd git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.3@485 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- util.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util.c') 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; } -- cgit v1.1