X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=util.c;h=d12db66c2361f6c9ebb139fdd007b80b1bb3c70c;hb=ef7be25bdbb88add1b4515405fc872a0d4ee9a38;hp=c601f0f515852b71f27ad93726e1814ecd9c2365;hpb=9c6a8729f6553615786878b382d4d44d2a54eec0;p=secnet.git diff --git a/util.c b/util.c index c601f0f..d12db66 100644 --- 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; - 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 */