diff options
author | 2002-02-04 11:43:16 +0000 | |
---|---|---|
committer | 2002-02-04 11:43:16 +0000 | |
commit | 60ae9c1a87ec42ca3ec0b2494b576974735dc40c (patch) | |
tree | 966ee483a2d3ca47eff167e8d7ee4ab420f6a95c /usr.bin/ssh | |
parent | unneeded includes (diff) | |
download | wireguard-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')
0 files changed, 0 insertions, 0 deletions