diff options
author | venaas <venaas> | 2009-02-27 14:11:45 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2009-02-27 14:11:45 +0000 |
commit | 990aada420a31585b609fc2cff4f8734dd516c96 (patch) | |
tree | e7d670864907f8615790c311b29bf75cb72949f4 | |
parent | c33a6b78928b61da9fbb758e000b9baeab7f13f1 (diff) |
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
-rw-r--r-- | util.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |