From 840c97461c7cd2f70e039282b2cbdb08d9fb7a0c Mon Sep 17 00:00:00 2001 From: Jacek Masiulaniec Date: Tue, 20 Apr 2010 20:55:05 +0000 Subject: Fix crash that could happen when attempting ``smtpctl remove'' while the message is being delivered. --- usr.sbin/smtpd/runner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/smtpd') diff --git a/usr.sbin/smtpd/runner.c b/usr.sbin/smtpd/runner.c index f35068a0661..e8812ca87df 100644 --- a/usr.sbin/smtpd/runner.c +++ b/usr.sbin/smtpd/runner.c @@ -1,4 +1,4 @@ -/* $OpenBSD: runner.c,v 1.80 2010/04/20 15:34:56 jacekm Exp $ */ +/* $OpenBSD: runner.c,v 1.81 2010/04/20 20:55:04 jacekm Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -636,7 +636,7 @@ runner_force_envelope_remove(char *mid) if (! queue_load_envelope(&message, mid)) return 0; - if (! message.flags & (F_MESSAGE_PROCESSING|F_MESSAGE_SCHEDULED)) + if (message.flags & (F_MESSAGE_PROCESSING|F_MESSAGE_SCHEDULED)) return 0; if (! queue_remove_envelope(&message)) -- cgit v1.2.3