diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-06-08 10:45:30 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-06-08 10:47:06 +0200 |
commit | 56be30df9f46508675f0544b067927122e8418ba (patch) | |
tree | 2d3aa41119b5f90387fc7fa613b98dec0cdefc65 /program.c | |
parent | b211ca0e420d8086d3fa0358413a6f8b44df1115 (diff) |
rtnl: fix premature netlink reply receive abort
The nl_recvmsgs() logic in uc_nl_request() incorrectly stopped reading
the socket before the netlink ACK message was handled for non-multipart
replies.
This caused subsequent requests to incorrectly receive the ACK of the
previous request, leading to a failure to receive the actual reply.
Fix this issue by continue reading the socket until either the finish
callback for multipart (dump) messages or the ack callback for non-
multipart messages was received.
This fix is basically the same as the one applied to the nl80211 module
in 54ef6c0 ("nl80211: fix premature netlink reply receive abort").
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'program.c')
0 files changed, 0 insertions, 0 deletions