summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2003-01-20 02:52:50 +0000
committermillert <millert@openbsd.org>2003-01-20 02:52:50 +0000
commit58f68c37912e597c6e47d69daad60bfac3c659f6 (patch)
tree7a997766aec9d831ecf3ef3f775c28ed5946102e /lib
parentsync (diff)
downloadwireguard-openbsd-58f68c37912e597c6e47d69daad60bfac3c659f6.tar.xz
wireguard-openbsd-58f68c37912e597c6e47d69daad60bfac3c659f6.zip
In dirswitch(), don't free dir_name until right before allocating
it again. This removes a potential double-free problem, whereby this function could free dir_name and then immediately return due to invalid directory syntax (without ever reassigning dir_name), then re-enter and free dir_name again. Fix from Stefan Esser.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions