diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-04-17 16:44:14 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-04-17 16:44:14 +0000 |
commit | e8689b969f84ead4f34f3b40545b0b5fab4729c5 (patch) | |
tree | 4c2cdf6779dd76fbb3dcb676dab16e4b1c19aa41 /src/bi_dns.m4 | |
parent | 2cde838634410277e59562959ed3ee9989622d0d (diff) | |
download | mailfromd-release_3_1_patches.tar.gz mailfromd-release_3_1_patches.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.m4 | 2 |
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; |