mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 00:30:09 +01:00
platform: fix error handling in event_handler_recvmsgs()
@abort_parsing is set TRUE at two places, which also explicitly set @err to something. We don't want to reset @err and got to the next @hdr. Instead error out first.
This commit is contained in:
parent
43381f9b85
commit
dc97a3b39b
1 changed files with 3 additions and 2 deletions
|
|
@ -5697,11 +5697,12 @@ continue_reading:
|
|||
}
|
||||
|
||||
event_seq_check (platform, msg, seq_result);
|
||||
err = 0;
|
||||
hdr = nlmsg_next (hdr, &n);
|
||||
|
||||
if (abort_parsing)
|
||||
goto out;
|
||||
|
||||
err = 0;
|
||||
hdr = nlmsg_next (hdr, &n);
|
||||
}
|
||||
|
||||
if (multipart) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue