-/* $OpenBSD: smtp_session.c,v 1.281 2016/07/02 07:55:59 eric Exp $ */
+/* $OpenBSD: smtp_session.c,v 1.282 2016/07/02 08:47:30 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
size_t destcount;
TAILQ_HEAD(, smtp_rcpt) rcpts;
+ size_t datain;
size_t odatalen;
struct iobuf obuf;
struct io oev;
char username[SMTPD_MAXMAILADDRSIZE];
size_t mailcount;
-
- size_t datain;
-
struct event pause;
struct smtp_tx *tx;
s->tx->msgflags = 0;
s->tx->destcount = 0;
s->tx->rcptcount = 0;
- s->datain = 0;
+ s->tx->datain = 0;
s->tx->odatalen = 0;
s->tx->dataeom = 0;
s->tx->rcvcount = 0;
line += 1;
/* account for newline */
- s->datain += strlen(line) + 1;
- if (s->datain > env->sc_maxsize) {
+ s->tx->datain += strlen(line) + 1;
+ if (s->tx->datain > env->sc_maxsize) {
s->tx->msgflags |= MF_ERROR_SIZE;
return;
}