mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-01 10:22:56 +02:00
opensmtpd: security update to 5.7.2p1_4.
Patch from Gentoo, see http://seclists.org/oss-sec/2015/q4/27.
This commit is contained in:
parent
70d91717ef
commit
3ea28fa262
2 changed files with 25 additions and 1 deletions
|
@ -0,0 +1,24 @@
|
||||||
|
--- smtpd/filter.c
|
||||||
|
+++ smtpd/filter.c
|
||||||
|
@@ -726,7 +726,6 @@ filter_tx_io(struct io *io, int evt)
|
||||||
|
struct filter_session *s = io->arg;
|
||||||
|
size_t len, n;
|
||||||
|
char *data;
|
||||||
|
- char buf[65535];
|
||||||
|
|
||||||
|
log_trace(TRACE_FILTERS, "filter: filter_tx_io(%p, %s)", s, io_strevent(evt));
|
||||||
|
|
||||||
|
@@ -734,10 +733,9 @@ filter_tx_io(struct io *io, int evt)
|
||||||
|
case IO_DATAIN:
|
||||||
|
data = iobuf_data(&s->ibuf);
|
||||||
|
len = iobuf_len(&s->ibuf);
|
||||||
|
- memmove(buf, data, len);
|
||||||
|
- buf[len] = 0;
|
||||||
|
- log_trace(TRACE_FILTERS, "filter: filter_tx_io: datain (%zu) for req %016"PRIx64": %s",
|
||||||
|
- len, s->id, buf);
|
||||||
|
+
|
||||||
|
+ log_trace(TRACE_FILTERS, "filter: filter_tx_io: datain (%zu) for req %016"PRIx64"",
|
||||||
|
+ len, s->id);
|
||||||
|
|
||||||
|
n = fwrite(data, 1, len, s->ofile);
|
||||||
|
if (n != len) {
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'opensmtpd'
|
# Template file for 'opensmtpd'
|
||||||
pkgname=opensmtpd
|
pkgname=opensmtpd
|
||||||
version=5.7.2p1
|
version=5.7.2p1
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--sysconfdir=/etc/smtpd --sbindir=/usr/bin
|
configure_args="--sysconfdir=/etc/smtpd --sbindir=/usr/bin
|
||||||
--with-maildir=/var/spool/mail --with-privsep-path=/var/empty
|
--with-maildir=/var/spool/mail --with-privsep-path=/var/empty
|
||||||
|
|
Loading…
Add table
Reference in a new issue