summaryrefslogtreecommitdiffstats
path: root/contrib/sendmail
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2008-09-02 04:53:24 +0000
committergshapiro <gshapiro@FreeBSD.org>2008-09-02 04:53:24 +0000
commitb9e54556741d38f7243ad02034c16262652f2f51 (patch)
treedbe768872ff0dac9b1874d8f2d15fcdae16065ba /contrib/sendmail
parent7ec33e687ce1a3520eb053fcdaab1ca2449e9d04 (diff)
downloadFreeBSD-src-b9e54556741d38f7243ad02034c16262652f2f51.zip
FreeBSD-src-b9e54556741d38f7243ad02034c16262652f2f51.tar.gz
Fix an ABI breakage found after the import that will be part of the
next version of sendmail. Putting it in now for the upcoming 7-BETA and 6-BETA test releases. Submitted by: Mike Tancsa
Diffstat (limited to 'contrib/sendmail')
-rw-r--r--contrib/sendmail/libmilter/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/sendmail/libmilter/main.c b/contrib/sendmail/libmilter/main.c
index faff4f8..2da9a82 100644
--- a/contrib/sendmail/libmilter/main.c
+++ b/contrib/sendmail/libmilter/main.c
@@ -52,7 +52,8 @@ smfi_register(smfilter)
(void) sm_strlcpy(smfi->xxfi_name, smfilter.xxfi_name, len);
/* compare milter version with hard coded version */
- if (smfi->xxfi_version != SMFI_VERSION &&
+ if ((SM_LM_VRS_MAJOR(smfi->xxfi_version) != SM_LM_VRS_MAJOR(SMFI_VERSION) ||
+ SM_LM_VRS_MINOR(smfi->xxfi_version) != SM_LM_VRS_MINOR(SMFI_VERSION)) &&
smfi->xxfi_version != 2 &&
smfi->xxfi_version != 3 &&
smfi->xxfi_version != 4)
OpenPOWER on IntegriCloud