diff options
author | gilles <gilles@openbsd.org> | 2020-01-03 22:01:29 +0000 |
---|---|---|
committer | gilles <gilles@openbsd.org> | 2020-01-03 22:01:29 +0000 |
commit | db893743287da0d84c08f36aee0807ad935e8d3e (patch) | |
tree | 72d8587fa4b6c8c400c755ffdb26610892fad9d2 /usr.sbin/smtpd | |
parent | timeout(9): delay thread wakeup(9) decision to end of softclock() loop (diff) | |
download | wireguard-openbsd-db893743287da0d84c08f36aee0807ad935e8d3e.tar.xz wireguard-openbsd-db893743287da0d84c08f36aee0807ad935e8d3e.zip |
upon return of authentication we log the username and generate an smtp-in
report for the authentication result, however we use a buffer that is too
small and usernames from virtual accounts may get truncated in logs.
reported by Bjorn Kalkbrenner
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r-- | usr.sbin/smtpd/smtp_session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c index f6d4672443d..e15ec2bfa53 100644 --- a/usr.sbin/smtpd/smtp_session.c +++ b/usr.sbin/smtpd/smtp_session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtp_session.c,v 1.418 2019/12/21 10:23:37 gilles Exp $ */ +/* $OpenBSD: smtp_session.c,v 1.419 2020/01/03 22:01:29 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@poolp.org> @@ -711,7 +711,7 @@ smtp_session_imsg(struct mproc *p, struct imsg *imsg) { struct smtp_session *s; struct smtp_rcpt *rcpt; - char user[LOGIN_NAME_MAX]; + char user[SMTPD_MAXMAILADDRSIZE]; char tmp[SMTP_LINE_MAX]; struct msg m; const char *line, *helo; |