summaryrefslogtreecommitdiffabout
path: root/src
authorSergey Poznyakoff <gray@gnu.org.ua>2017-10-21 07:54:05 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2017-10-21 07:54:05 (GMT)
commit2f77b90a2d1e7a43f7d77f06c953142cb90146f4 (patch) (side-by-side diff)
treecb792acbd0320a6755a2cb9b49102f62d215ab37 /src
parentb74300677afd3f489f6dc65959f722be28c2804b (diff)
downloadmailfromd-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') (more/less context) (ignore whitespace changes)
-rw-r--r--src/builtin/dns.bi3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/builtin/dns.bi b/src/builtin/dns.bi
index 8d28748..336d8f4 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));

Return to:

Send suggestions and report system problems to the System administrator.