diff options
author | Sunil Nimmagadda <sunil@cvs.openbsd.org> | 2017-11-27 08:36:00 +0000 |
---|---|---|
committer | Sunil Nimmagadda <sunil@cvs.openbsd.org> | 2017-11-27 08:36:00 +0000 |
commit | 2034306b73665cb1fe00e00d50b8f213caf49506 (patch) | |
tree | 5616c67d7bc83ff952ea0dccbfef719877a392db /usr.sbin/smtpd/control.c | |
parent | d0eb47a2f6a6ea75161637f9dfd8bd93ec5d2bad (diff) |
Show correct command execution status by checking against update
operation return value.
Issue reported by 'Zelest' (Jesper Wallin).
Suggestions and ok eric@ gilles@.
Diffstat (limited to 'usr.sbin/smtpd/control.c')
-rw-r--r-- | usr.sbin/smtpd/control.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/control.c b/usr.sbin/smtpd/control.c index b30d53cdb31..b1123e6428b 100644 --- a/usr.sbin/smtpd/control.c +++ b/usr.sbin/smtpd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.119 2017/11/23 07:23:36 eric Exp $ */ +/* $OpenBSD: control.c,v 1.120 2017/11/27 08:35:59 sunil Exp $ */ /* * Copyright (c) 2012 Gilles Chehade <gilles@poolp.org> @@ -731,8 +731,8 @@ control_dispatch_ext(struct mproc *p, struct imsg *imsg) if (len >= LINE_MAX) goto invalid; + imsg->hdr.peerid = c->id; m_forward(p_lka, imsg); - m_compose(p, IMSG_CTL_OK, 0, 0, -1, NULL, 0); return; case IMSG_CTL_DISCOVER_EVPID: |