It does not make sense to use ioctl(FIONREAD) with TLS as libtls
authorbluhm <bluhm@openbsd.org>
Tue, 4 Jul 2017 15:52:26 +0000 (15:52 +0000)
committerbluhm <bluhm@openbsd.org>
Tue, 4 Jul 2017 15:52:26 +0000 (15:52 +0000)
commitb28dfb31bbb5dc7e28490a55487c43d590d29f8e
treeea78e6e92da12c980ca4045723208d55fe2a6e59
parentb7b6b8e466ca06ecd1e627a57ffe09b5ef285e40
It does not make sense to use ioctl(FIONREAD) with TLS as libtls
has already read the buffer from kernel to user land.  I have blindly
copied this code from libevent for syslogd(8) TLS, remove it together
with the bug.  It caused hangs in ldapd(8).
report, analysis, testing, OK Seiya Kawashima, Robert Klein, gsoares@
usr.sbin/ldapd/evbuffer_tls.c
usr.sbin/syslogd/evbuffer_tls.c