~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util.c: Don't byte-swap IPv4 addresses, even if we don't have IPv6.
[secnet]
/
util.c
diff --git
a/util.c
b/util.c
index
c601f0f
..
d12db66
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-521,7
+521,7
@@
void string_item_to_iaddr(const item_t *item, uint16_t port, union iaddr *ia,
#ifndef CONFIG_IPV6
ia->sin.sin_family=AF_INET;
#ifndef CONFIG_IPV6
ia->sin.sin_family=AF_INET;
- ia->sin.sin_addr.s_addr=
string_item_to_ipaddr(item,desc
);
+ ia->sin.sin_addr.s_addr=
htonl(string_item_to_ipaddr(item,desc)
);
ia->sin.sin_port=htons(port);
#else /* CONFIG_IPV6 => we have adns_text2addr */
ia->sin.sin_port=htons(port);
#else /* CONFIG_IPV6 => we have adns_text2addr */