projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f096ad
)
Set AF
author
aland
<aland>
Tue, 3 May 2005 17:32:20 +0000
(17:32 +0000)
committer
aland
<aland>
Tue, 3 May 2005 17:32:20 +0000
(17:32 +0000)
src/lib/misc.c
patch
|
blob
|
history
diff --git
a/src/lib/misc.c
b/src/lib/misc.c
index
6f2e4d6
..
9309ff4
100644
(file)
--- a/
src/lib/misc.c
+++ b/
src/lib/misc.c
@@
-519,6
+519,7
@@
int ip_hton(const char *src, int af, lrad_ipaddr_t *dst)
return -1;
}
+ dst->af = af;
memcpy(&dst->ipaddr.ip4addr.s_addr, hp->h_addr,
sizeof(dst->ipaddr.ip4addr.s_addr));
return 0;