summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_hibernate.c
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2014-05-20 14:21:45 +0000
committerreyk <reyk@openbsd.org>2014-05-20 14:21:45 +0000
commitaded3101de1fa7dd31f5c7e11c67f6f85a4f6211 (patch)
treeed5618553681dd9fd8ad113971302336af0a0687 /sys/kern/subr_hibernate.c
parentAdd -o max_read=XXX support in fuse. This is needed by usmb to have a (diff)
downloadwireguard-openbsd-aded3101de1fa7dd31f5c7e11c67f6f85a4f6211.tar.xz
wireguard-openbsd-aded3101de1fa7dd31f5c7e11c67f6f85a4f6211.zip
Deep down inside OpenSSL, err... LibreSSL, RSA_set_ex_data attempts to
free() the external data when releasing the RSA object. The RSA_GET_EX_NEW_INDEX(3) manual page doesn't mention that this is the default behaviour - it just describes the possible free_func() callback - and the code path in libcrypto is hiding the fact behind layers of abstraction. Fix possible double free by allocating and copying the external data reference that is used for RSA privsep (pkiname in smtpd's case). ok eric@ gilles@
Diffstat (limited to 'sys/kern/subr_hibernate.c')
0 files changed, 0 insertions, 0 deletions