summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgilles <gilles@openbsd.org>2014-04-19 16:50:28 +0000
committergilles <gilles@openbsd.org>2014-04-19 16:50:28 +0000
commit5dc5ee615ada534d7c4f284d2ae679ce1b18a6f5 (patch)
treecacb8632258bb5f597022ff248ec3b3e08d27443
parentstop "advertising" disabling pmtud and window size increasing (diff)
downloadwireguard-openbsd-5dc5ee615ada534d7c4f284d2ae679ce1b18a6f5.tar.xz
wireguard-openbsd-5dc5ee615ada534d7c4f284d2ae679ce1b18a6f5.zip
(void) cast strlcpy() that cannot truncate, dns.c ensures the reply will
fit in the buffer before returning the answer
-rw-r--r--usr.sbin/smtpd/smtp_session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c
index 868a57e1c58..f879a11d38d 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.202 2014/04/19 16:44:01 gilles Exp $ */
+/* $OpenBSD: smtp_session.c,v 1.203 2014/04/19 16:50:28 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -315,7 +315,7 @@ smtp_session_imsg(struct mproc *p, struct imsg *imsg)
m_get_string(&m, &line);
m_end(&m);
s = tree_xpop(&wait_lka_ptr, reqid);
- strlcpy(s->hostname, line, sizeof s->hostname);
+ (void)strlcpy(s->hostname, line, sizeof s->hostname);
if (smtp_lookup_servername(s))
smtp_connected(s);
return;