From dbe6d91e5c0cea70d7260efa41cea9e8398aa17f Mon Sep 17 00:00:00 2001 From: Gregory Neil Shapiro Date: Tue, 2 Sep 2008 04:53:24 +0000 Subject: [PATCH] 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 --- contrib/sendmail/libmilter/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/sendmail/libmilter/main.c b/contrib/sendmail/libmilter/main.c index faff4f8363db..2da9a824a666 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)