aboutsummaryrefslogtreecommitdiff
path: root/mfd/bi_dns.m4
diff options
context:
space:
mode:
Diffstat (limited to 'mfd/bi_dns.m4')
-rw-r--r--mfd/bi_dns.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/mfd/bi_dns.m4 b/mfd/bi_dns.m4
index a3a6ef13..6d071e7e 100644
--- a/mfd/bi_dns.m4
+++ b/mfd/bi_dns.m4
@@ -122,24 +122,25 @@ MF_DEFUN(dns_getname, STRING, STRING ipstr)
dnstat = ptr_lookup(addr, names, NELEMS(names), &ttl, NULL, 0);
switch (dnstat) {
case dns_success: {
size_t i;
size_t ncount;
for (ncount = 0; ncount < NELEMS(names) && names[ncount];
ncount++);
qsort(names, ncount, sizeof names[0], hostname_cmp);
+ MF_OBSTACK_BEGIN();
for (i = 0; i < ncount; i++) {
if (i > 0)
MF_OBSTACK_1GROW(' ');
MF_OBSTACK_GROW(names[i]);
}
MF_OBSTACK_1GROW(0);
for (; i < ncount; i++)
free(names[i]);
MF_RETURN_OBSTACK();
}

Return to:

Send suggestions and report system problems to the System administrator.