aboutsummaryrefslogtreecommitdiff
path: root/src/bi_dns.m4
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-04-17 16:44:14 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-04-17 16:44:14 +0000
commite8689b969f84ead4f34f3b40545b0b5fab4729c5 (patch)
tree4c2cdf6779dd76fbb3dcb676dab16e4b1c19aa41 /src/bi_dns.m4
parent2cde838634410277e59562959ed3ee9989622d0d (diff)
downloadmailfromd-e8689b969f84ead4f34f3b40545b0b5fab4729c5.tar.gz
mailfromd-e8689b969f84ead4f34f3b40545b0b5fab4729c5.tar.bz2
Bug fixes (sync with trunk)release_3_1_patches
git-svn-id: file:///svnroot/mailfromd/branches/release_3_1_patches@1358 7a8a7f39-df28-0410-adc6-e0d955640f24
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.