diff options
author | 2019-01-29 15:40:45 +0000 | |
---|---|---|
committer | 2019-01-29 15:40:45 +0000 | |
commit | 3520deb868e8755aeee9451ecd10b5f37714a56f (patch) | |
tree | 71f333e2474bfe9b62b34b97def641a5e5e5b411 | |
parent | We don't need IMSG_SHUTDOWN, we can just close the sockets. (diff) | |
download | wireguard-openbsd-3520deb868e8755aeee9451ecd10b5f37714a56f.tar.xz wireguard-openbsd-3520deb868e8755aeee9451ecd10b5f37714a56f.zip |
strip \r from lmtp responses
ok sunil@
-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 dc5b837ccc9..740af692a1f 100644 --- a/usr.sbin/smtpd/mail.lmtp.c +++ b/usr.sbin/smtpd/mail.lmtp.c @@ -218,6 +218,7 @@ lmtp_engine(FILE *conn, struct session *session) if ((linelen = getline(&line, &linesize, conn)) == -1) err(1, "getline"); line[strcspn(line, "\n")] = '\0'; + line[strcspn(line, "\r")] = '\0'; if (linelen < 4 || !isdigit(line[0]) || |