summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/smtpd/filter.c')
-rw-r--r--usr.sbin/smtpd/filter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/filter.c b/usr.sbin/smtpd/filter.c
index 516d378d8a6..f8682455e52 100644
--- a/usr.sbin/smtpd/filter.c
+++ b/usr.sbin/smtpd/filter.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: filter.c,v 1.21 2016/11/20 08:43:36 eric Exp $ */
+/* $OpenBSD: filter.c,v 1.22 2016/11/21 13:00:43 eric Exp $ */
/*
* Copyright (c) 2011 Gilles Chehade <gilles@poolp.org>
@@ -691,8 +691,8 @@ filter_tx_io(struct io *io, int evt, void *arg)
switch (evt) {
case IO_DATAIN:
- data = iobuf_data(&s->ibuf);
- len = iobuf_len(&s->ibuf);
+ data = io_data(&s->iev);
+ len = io_datalen(&s->iev);
log_trace(TRACE_FILTERS,
"filter: filter_tx_io: datain (%zu) for req %016"PRIx64"",
@@ -705,7 +705,7 @@ filter_tx_io(struct io *io, int evt, void *arg)
break;
}
s->idatalen += n;
- iobuf_drop(&s->ibuf, n);
+ io_drop(&s->iev, n);
iobuf_normalize(&s->ibuf);
return;