aboutsummaryrefslogtreecommitdiff
path: root/src/bi_dns.m4
diff options
context:
space:
mode:
Diffstat (limited to 'src/bi_dns.m4')
-rw-r--r--src/bi_dns.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bi_dns.m4 b/src/bi_dns.m4
index a2639a2b..96f9d36e 100644
--- a/src/bi_dns.m4
+++ b/src/bi_dns.m4
@@ -84,7 +84,7 @@ MF_DEFUN(getmx, STRING, STRING domain, OPTIONAL, NUMBER resolve)
MF_BEGIN_TEMP_SPACE(s, size);
- for (i = 0, ns = 0, p = s; mxbuf[i]; i++) {
+ for (i = 0, ns = 0, p = s; i < MAXMXCOUNT && mxbuf[i]; i++) {
size_t len = strlen(mxbuf[i]);
if (ns + len + 1 > size)
break;

Return to:

Send suggestions and report system problems to the System administrator.