openbsd-ports/mail/smtp-vilter/patches/patch-bin_smtp-vilter_engine_c
mbalmer 1e40ffb007 Make smtp-vilter work with sendmail-8.14.0. The smfiDesc_str was extended,
so make sure the new elements are initialized to sane values.
2007-02-04 12:05:12 +00:00

13 lines
517 B
Plaintext

$OpenBSD: patch-bin_smtp-vilter_engine_c,v 1.3 2007/02/04 12:05:12 mbalmer Exp $
--- bin/smtp-vilter/engine.c.orig Sun Feb 4 13:05:31 2007
+++ bin/smtp-vilter/engine.c Sun Feb 4 13:05:48 2007
@@ -1764,6 +1764,8 @@ e_main(uid_t uid, gid_t gid, int pipe_m2
syslog(LOG_INFO, "dropped privileges, running as %d:%d", uid, gid);
/* Initialize sendmail milter */
+ bzero(&desc, sizeof(desc));
+
desc.xxfi_name = "smtp-vilter";
desc.xxfi_version = SMFI_VERSION;
desc.xxfi_flags = SMFIF_ADDHDRS | SMFIF_CHGHDRS;