diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2020-01-03 22:01:30 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2020-01-03 22:01:30 +0000 |
commit | 1b8ccb58c7b9b8d417184dc949ac5d0fe7b5eb7c (patch) | |
tree | a973a763c7a440fee0dbf3874580a1c86b74526b /usr.sbin/smtpd | |
parent | 1446d31d20cdc0b3b93b733d543ef810bd656305 (diff) |
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; |