projects
/
radsecproxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5db9da3
)
fixed addr_copy function for bsd
author
venaas
<venaas>
Fri, 27 Feb 2009 14:11:45 +0000
(14:11 +0000)
committer
venaas
<venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>
Fri, 27 Feb 2009 14:11:45 +0000
(14:11 +0000)
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@485
e88ac4ed
-0b26-0410-9574-
a7f39faa03bf
util.c
patch
|
blob
|
history
diff --git
a/util.c
b/util.c
index
ca16d41
..
be304cb
100644
(file)
--- 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;
}