summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2010-04-20 20:55:05 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2010-04-20 20:55:05 +0000
commit840c97461c7cd2f70e039282b2cbdb08d9fb7a0c (patch)
treead1309bf75569c63d4a5c826073359d7084e1727 /usr.sbin/smtpd
parentcd401f6732e8849ebd763413c6d53b1126b61a05 (diff)
Fix crash that could happen when attempting ``smtpctl remove'' while
the message is being delivered.
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/runner.c4
1 files changed, 2 insertions, 2 deletions
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 <gilles@openbsd.org>
@@ -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))