diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-10-21 10:54:05 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-10-21 10:54:05 +0300 |
commit | 2f77b90a2d1e7a43f7d77f06c953142cb90146f4 (patch) | |
tree | cb792acbd0320a6755a2cb9b49102f62d215ab37 /src | |
parent | b74300677afd3f489f6dc65959f722be28c2804b (diff) | |
download | mailfromd-2f77b90a2d1e7a43f7d77f06c953142cb90146f4.tar.gz mailfromd-2f77b90a2d1e7a43f7d77f06c953142cb90146f4.tar.bz2 |
Bugfix
* lib/dns.c (dns_reply_resolve): Remove unneeded ntohl.
* src/builtin/dns.bi): Remove unneeded htonl.
Diffstat (limited to 'src')
-rw-r--r-- | src/builtin/dns.bi | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/builtin/dns.bi b/src/builtin/dns.bi index 8d28748a..336d8f40 100644 --- a/src/builtin/dns.bi +++ b/src/builtin/dns.bi @@ -184,8 +184,7 @@ MF_DEFUN(getmx, STRING, STRING domain, OPTIONAL, NUMBER resolve) MF_OBSTACK_BEGIN(); for (i = 0; i < reply.count; i++) { struct in_addr s; - s.s_addr = htonl(reply.data.ip[i]); - + s.s_addr = reply.data.ip[i]; if (i > 0) MF_OBSTACK_1GROW(' '); MF_OBSTACK_GROW(inet_ntoa(s)); |