summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/control.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2013-04-12 18:22:50 +0000
committerEric Faurot <eric@cvs.openbsd.org>2013-04-12 18:22:50 +0000
commit151c44184e211bb3270a7fabeae11cc19bf3f655 (patch)
tree0293c3549c0c35779dee2a8fcd133cb041da45e1 /usr.sbin/smtpd/control.c
parentb2af155a762b2602e13422b698b391ea9278194b (diff)
replace MAX_LINE_SIZE and SMTP_LINE_MAX with SMTPD_MAXLINESIZE for
consistency and clarity. Remove useless and confusing extra byte in a few arrays based on this define. ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/control.c')
-rw-r--r--usr.sbin/smtpd/control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/control.c b/usr.sbin/smtpd/control.c
index b28bba91325..e3267d6d6fd 100644
--- a/usr.sbin/smtpd/control.c
+++ b/usr.sbin/smtpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.83 2013/03/11 17:40:11 deraadt Exp $ */
+/* $OpenBSD: control.c,v 1.84 2013/04/12 18:22:49 eric Exp $ */
/*
* Copyright (c) 2012 Gilles Chehade <gilles@poolp.org>
@@ -674,7 +674,7 @@ control_dispatch_ext(struct mproc *p, struct imsg *imsg)
/* table name too long */
len = strlen(imsg->data);
- if (len >= MAX_LINE_SIZE)
+ if (len >= SMTPD_MAXLINESIZE)
goto invalid;
m_forward(p_lka, imsg);