diff options
author | millert <millert@openbsd.org> | 2020-03-16 23:34:02 +0000 |
---|---|---|
committer | millert <millert@openbsd.org> | 2020-03-16 23:34:02 +0000 |
commit | 7d506d68304f3e202ed0a2e4c598f9ab1ea92872 (patch) | |
tree | ee8c9500113544e6cd3491d5c22b23b0bbeac367 /usr.sbin/smtpd | |
parent | Actually attach panel (if we have one). (diff) | |
download | wireguard-openbsd-7d506d68304f3e202ed0a2e4c598f9ab1ea92872.tar.xz wireguard-openbsd-7d506d68304f3e202ed0a2e4c598f9ab1ea92872.zip |
Initialize session.rcptto to NULL before parsing command line optinos.
Otherwise, if neither -r nor -u is specified, it will be used uninitialized.
Found by tobhe@; OK tobhe@ deraadt@
Diffstat (limited to 'usr.sbin/smtpd')
-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 c7dc46d5ec3..4bab03f86ba 100644 --- a/usr.sbin/smtpd/mail.lmtp.c +++ b/usr.sbin/smtpd/mail.lmtp.c @@ -64,6 +64,7 @@ main(int argc, char *argv[]) session.lhlo = "localhost"; session.mailfrom = getenv("SENDER"); + session.rcptto = NULL; while ((ch = getopt(argc, argv, "d:l:f:ru")) != -1) { switch (ch) { |