diff options
author | jbeck <none@none> | 2007-06-21 17:38:39 -0700 |
---|---|---|
committer | jbeck <none@none> | 2007-06-21 17:38:39 -0700 |
commit | 24472db64c485d6744c0321b7581cf066556cf2d (patch) | |
tree | 74087b2fe00f973001af613a4e19b226c92cc706 /usr/src/cmd/sendmail/libmilter/main.c | |
parent | 9896aa55191d155b29e5b0b8fa8a7b17c96fa723 (diff) | |
download | illumos-joyent-24472db64c485d6744c0321b7581cf066556cf2d.tar.gz |
6570797 sendmail 8.14 upgrade introduced incompatible change in libmilter API
Diffstat (limited to 'usr/src/cmd/sendmail/libmilter/main.c')
-rw-r--r-- | usr/src/cmd/sendmail/libmilter/main.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr/src/cmd/sendmail/libmilter/main.c b/usr/src/cmd/sendmail/libmilter/main.c index 10dc778870..b8609cd785 100644 --- a/usr/src/cmd/sendmail/libmilter/main.c +++ b/usr/src/cmd/sendmail/libmilter/main.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999-2003, 2006 Sendmail, Inc. and its suppliers. + * Copyright (c) 1999-2003, 2006, 2007 Sendmail, Inc. and its suppliers. * All rights reserved. * * By using this file, you agree to the terms and conditions set @@ -11,7 +11,7 @@ #pragma ident "%Z%%M% %I% %E% SMI" #include <sm/gen.h> -SM_RCSID("@(#)$Id: main.c,v 8.81 2006/11/02 18:31:43 ca Exp $") +SM_RCSID("@(#)$Id: main.c,v 8.83 2007/04/23 22:22:50 ca Exp $") #define _DEFINE 1 #include "libmilter.h" @@ -54,7 +54,10 @@ 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 (smfi->xxfi_version != SMFI_VERSION && + smfi->xxfi_version != 2 && + smfi->xxfi_version != 3 && + smfi->xxfi_version != 4) { /* hard failure for now! */ smi_log(SMI_LOG_ERR, |