aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Faurot <eric@faurot.net>2013-07-18 17:01:05 +0200
committerEric Faurot <eric@faurot.net>2013-07-18 17:01:05 +0200
commit9768587353764d73559ca1d3017795ac00ae5623 (patch)
treeadd8dc6f4480361b5af8f20ced6325486b8316c8
parentMerge branch 'master' of ssh.poolp.org:/git/opensmtpd (diff)
downloadOpenSMTPD-9768587353764d73559ca1d3017795ac00ae5623.tar.xz
OpenSMTPD-9768587353764d73559ca1d3017795ac00ae5623.zip
missing fake read of message dataopensmtpd-201307190959
-rw-r--r--smtpd/smtpctl.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/smtpd/smtpctl.c b/smtpd/smtpctl.c
index 6d851f5c..bea42f33 100644
--- a/smtpd/smtpctl.c
+++ b/smtpd/smtpctl.c
@@ -568,8 +568,10 @@ do_show_hoststats(int argc, struct parameter *argv)
do {
srv_recv(IMSG_CTL_MTA_SHOW_HOSTSTATS);
- if (rlen)
+ if (rlen) {
printf("%s\n", rdata);
+ srv_read(NULL, rlen);
+ }
srv_end();
} while (rlen);
@@ -664,8 +666,10 @@ do_show_routes(int argc, struct parameter *argv)
do {
srv_recv(IMSG_CTL_MTA_SHOW_ROUTES);
- if (rlen)
+ if (rlen) {
printf("%s\n", rdata);
+ srv_read(NULL, rlen);
+ }
srv_end();
} while (rlen);