From 3cb9f58c3d6df1d8ae5c7ba926aa6533754bac77 Mon Sep 17 00:00:00 2001 From: gilles Date: Sat, 19 Apr 2014 16:55:15 +0000 Subject: [PATCH] certs are looked up by hostname, the size of the buffer should use the max hostname len, not max pathname len as before --- usr.sbin/smtpd/smtpd.h | 4 ++-- 1 file 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 @@ -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 { -- 2.20.1