summaryrefslogtreecommitdiffabout
path: root/src/bi_dns.m4
Side-by-side diff
Diffstat (limited to 'src/bi_dns.m4') (more/less context) (ignore whitespace changes)
-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 a2639a2..96f9d36 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.