summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/log.c
diff options
context:
space:
mode:
authorart <art@openbsd.org>2002-02-04 11:43:16 +0000
committerart <art@openbsd.org>2002-02-04 11:43:16 +0000
commit60ae9c1a87ec42ca3ec0b2494b576974735dc40c (patch)
tree966ee483a2d3ca47eff167e8d7ee4ab420f6a95c /usr.bin/ssh/log.c
parentunneeded includes (diff)
downloadwireguard-openbsd-60ae9c1a87ec42ca3ec0b2494b576974735dc40c.tar.xz
wireguard-openbsd-60ae9c1a87ec42ca3ec0b2494b576974735dc40c.zip
Don't ffree the newly allocated file before calling dupfdopen.
In some cases that could cause dupfdopen->fd_getfile to access freed memory setting fd_ofiles[fd] to NULL is not a solution because that would cause a race condition. Free the new file after dupfdopen and use closef (because it will be necessary in the future. XXX - consider more cleanup of the code around dupfdopen.
Diffstat (limited to 'usr.bin/ssh/log.c')
0 files changed, 0 insertions, 0 deletions