diff options
author | 2019-06-01 09:54:19 +0000 | |
---|---|---|
committer | 2019-06-01 09:54:19 +0000 | |
commit | 5d3046682a6c911eb5b53a81bf25192b30dccbe9 (patch) | |
tree | 2a603a326898ccffe7be0e9469cc23843f26b6af /sys/kern/tty.c | |
parent | update currency exchange rates; (diff) | |
download | wireguard-openbsd-5d3046682a6c911eb5b53a81bf25192b30dccbe9.tar.xz wireguard-openbsd-5d3046682a6c911eb5b53a81bf25192b30dccbe9.zip |
Make sure that the IMSG_CTL_RESET message is sent immediately.
This fixes an issue that might better be solved in imsg itself.
The problem is that IMSG_CTL_RESET does not include an fd while the
following messages (IMSG_CFG_RELAY and IMSG_CFG_RELAY_FD) do contain
fds. If the receiver gets them in one buffer (via recvmsg), the first
fd might be wrongly associated to the IMSG_CTL_RESET message. This is
theoretically taken care of by the imsg API, so it is either a bug in
relayd's API usage or in imsg itself.
"sure" claudio@ as a temporary fix.
Diffstat (limited to 'sys/kern/tty.c')
0 files changed, 0 insertions, 0 deletions