summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/bounce.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/smtpd/bounce.c')
-rw-r--r--usr.sbin/smtpd/bounce.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/bounce.c b/usr.sbin/smtpd/bounce.c
index 4700ef1e590..d09cd7604fd 100644
--- a/usr.sbin/smtpd/bounce.c
+++ b/usr.sbin/smtpd/bounce.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bounce.c,v 1.54 2013/01/26 09:37:23 gilles Exp $ */
+/* $OpenBSD: bounce.c,v 1.55 2013/04/12 18:22:49 eric Exp $ */
/*
* Copyright (c) 2009 Gilles Chehade <gilles@poolp.org>
@@ -120,7 +120,7 @@ bounce_init(void)
void
bounce_add(uint64_t evpid)
{
- char buf[MAX_LINE_SIZE], *line;
+ char buf[SMTPD_MAXLINESIZE], *line;
struct envelope evp;
struct bounce_message key, *msg;
struct bounce_envelope *be;
@@ -322,7 +322,7 @@ static int
bounce_next_message(struct bounce_session *s)
{
struct bounce_message *msg;
- char buf[MAX_LINE_SIZE];
+ char buf[SMTPD_MAXLINESIZE];
int fd;
again:
@@ -587,7 +587,7 @@ bounce_io(struct io *io, int evt)
case IO_DATAIN:
nextline:
line = iobuf_getline(&s->iobuf, &len);
- if (line == NULL && iobuf_len(&s->iobuf) >= SMTP_LINE_MAX) {
+ if (line == NULL && iobuf_len(&s->iobuf) >= SMTPD_MAXLINESIZE) {
bounce_status(s, "Input too long");
bounce_free(s);
return;