diff options
author | 2019-01-21 11:27:29 +0000 | |
---|---|---|
committer | 2019-01-21 11:27:29 +0000 | |
commit | 6b4fcf69f641c58786f107cb94e9d777aebbef53 (patch) | |
tree | 0fc1babbae574e9f0f65dd65e0e37e241018d544 | |
parent | Adapt to allwinner device tree changes in linux >= 5.0-rc1 (diff) | |
download | wireguard-openbsd-6b4fcf69f641c58786f107cb94e9d777aebbef53.tar.xz wireguard-openbsd-6b4fcf69f641c58786f107cb94e9d777aebbef53.zip |
While using buffered stdio over a socket, fflush(3) command before
reading the response.
Ok eric@ jung@
-rw-r--r-- | usr.sbin/smtpd/mail.lmtp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/smtpd/mail.lmtp.c b/usr.sbin/smtpd/mail.lmtp.c index d831ca2fa52..dc5b837ccc9 100644 --- a/usr.sbin/smtpd/mail.lmtp.c +++ b/usr.sbin/smtpd/mail.lmtp.c @@ -214,6 +214,7 @@ lmtp_engine(FILE *conn, struct session *session) enum phase phase = PHASE_BANNER; do { + fflush(conn); if ((linelen = getline(&line, &linesize, conn)) == -1) err(1, "getline"); line[strcspn(line, "\n")] = '\0'; |