diff options
author | 2014-04-19 16:55:15 +0000 | |
---|---|---|
committer | 2014-04-19 16:55:15 +0000 | |
commit | 3cb9f58c3d6df1d8ae5c7ba926aa6533754bac77 (patch) | |
tree | b66890db5f97f95b7121f25f811711ae189ad82e | |
parent | (void) cast a strlcpy() that cannot truncate because lka.c ensures the (diff) | |
download | wireguard-openbsd-3cb9f58c3d6df1d8ae5c7ba926aa6533754bac77.tar.xz wireguard-openbsd-3cb9f58c3d6df1d8ae5c7ba926aa6533754bac77.zip |
certs are looked up by hostname, the size of the buffer should use the
max hostname len, not max pathname len as before
-rw-r--r-- | usr.sbin/smtpd/smtpd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h index 2a7b9624bff..42e7b884147 100644 --- a/usr.sbin/smtpd/smtpd.h +++ b/usr.sbin/smtpd/smtpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.h,v 1.454 2014/04/09 18:55:19 eric Exp $ */ +/* $OpenBSD: smtpd.h,v 1.455 2014/04/19 16:55:15 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@poolp.org> @@ -1024,7 +1024,7 @@ enum ca_resp_status { struct ca_cert_req_msg { uint64_t reqid; - char name[SMTPD_MAXPATHLEN]; + char name[SMTPD_MAXHOSTNAMELEN]; }; struct ca_cert_resp_msg { |